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

前端 未结 6 1930
闹比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:45

    In case you are doing this with UPS Shipping wsdl and you want to swap dev to prod urls when you are building for different regions (debug,dev,prod) etc. You would use the command below to generate a vb or C# file from the Ship.wsdl and then override values in this case Ship.vb file.

    WSDL /Language:VB /out:"C:\wsdl\Ship.vb" "C:\wsdl\Ship.wsdl"  C:\wsdl\UPSSecurity.xsd  C:\wsdl\ShipWebServiceSchema.xsd  C:\wsdl\IFWS.xsd  C:\wsdl\common.xsd
    

提交回复
热议问题