If you use the WSDL file produced by the AXIS2 version 1.4 sample "soapwithattachments", that WSDL file is designated invalid by both XMLSpy WSDL validator, and by the Microsoft utility svcutil. The two utilities produce different error messages.
Is this a bug in java2wsdl?
-----------------------------------------------------------------------------------------------------
XMLSpy 2008 release 2 produces the following error:
"File SWASampleService.wsdl is not valid.
element 'IOException' in operation 'uploadFile' (portType 'AttachmentServicePortType') has no match in operstion 'uploadFile'(binding 'AttachmentServiceHttpBinding')"
svcutil produces the following errors:
1. "Error: Cannot import wsdl:binding
Detail: The given key was not present in the dictionary.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://service.soapwithattachments.sample']/wsdl:binding[@name='SWASampleServiceHttpBinding']"
and
2."Error: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://service.soapwithattachments.sample']/wsdl:binding[@name='SWASampleServiceHttpBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://service.soapwithattachments.sample']/wsdl:service[@name='SWASampleService']/wsdl:port[@name='SWASampleServiceHttpEndpoint']"
-------------------------------------------------------------------------------------------------