Today, it is strange to encounter a WSDL, which is generated in Java.
<types> <xsd:schema> <xsd:import namespace= "http://dms.sfc.hk" schemalocation = "Sfc.xsd"/> </xsd:schema> </types>
The WSDL has two files, one is sfc.wsdl and the other is sfc.xsd.
At the command line execution: Wsdl.exe sfc.wsdl Error:
Error:unable to import the binding ' Sfcserviceportbinding ' from namespace ' http://d ms.sfc.hk '. -Unable to import operation ' CreateFolder '. -The element ' Http://dms.sfc.hk:createFolder ' is missing.
Here's how to fix it:
1. Copy the contents of the <xs:schema> node in the XSD file into the <types><xsd:schema> of the WSDL file.
2. After Wsdl.exe, add all the external references to the XSD. such as: Wsdl.exe sfc.wsdl Sfc.xsd/out:sfc.cs
Http://www.cnblogs.com/axisoft/archive/2010/10/26/1861220.html
Resolves an issue where WSDL.EXE cannot parse the XSD of an external import