wsdl.exe Error: Unable to import binding '…' from namespace '…'

前端 未结 6 1911
闹比i
闹比i 2020-12-13 19:21

When running wsdl.exe on a WSDL I created, I get this error:

Error: Unable to import binding \'SomeBinding\' from namespace \'SomeNS\'.

  • Unab
6条回答
  •  独厮守ぢ
    2020-12-13 19:48

    I have came across to the same error message. After digging for a while, found out that one can supply xsd files in addition to wsdl file. So included/imported .xsd files in addition to .wsdl at the end of the wsdl command as follows:

    wsdl.exe myWebService.wsdl myXsd1.xsd myType1.xsd myXsd2.xsd ...

    Wsdl gave some warnings but it did create an ok service interface.

提交回复
热议问题