简体   繁体   中英

WSDL unable to import binding

I'm not able to get WSDL to work, it giving me this error:

C:\Program Files\Microsoft.NET\SDK\v2.0\Bin>wsdl.exe /username:NOTGIVINGU/password:THEPASSWORD /v /parsableerrors http://www.stoysnet.com/stn_mfg/link/soap.php?wsdl

WSDL: error WSDL1: Unable to import binding 'Product' from namespace 'http://www.stoysnet.com/stn_mfg/link/soap.php?wsdl'.
      Unable to import operation 'exists'.
      The datatype 'http://www.stoysnet.com/stn_mfg/link/soap.php?wsdl:IDType' is missing.

The WSDL is located:

http://www.stoysnet.com//stn_mfg/link/soap.php?wsdl

Any ideas?

A couple of notes:

  1. Whoever wrote this WSDL doesn't understand XML namespaces. It makes no sense to have a query string ("?wsdl") in an XML namespace.
  2. The error message you're getting is precisely correct. IDType is the name of an element, not the name of a type. Yet it's being referenced in a message:

     <message name="ID"> <part name="ID" type="tns:IDType" /> </message> 

In other words, this WSDL is broken, and cannot work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM