Resolves an issue where WSDL.EXE cannot parse the XSD of an external import

Source: Internet
Author: User
Tags wsdl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.