Create web service proxy in Visual Studio from a WSDL file

前端 未结 7 1952
别跟我提以往
别跟我提以往 2020-11-29 17:24

My application needs to talk to a web service that hasn\'t got an online WSDL definition. The developers however supplied me with a WSDL file.

With a public WSDL Vis

7条回答
  •  长情又很酷
    2020-11-29 17:47

    On the side note: if you have all of the files locally (not only wsdl file but also xsd files) you can invoke wsdl.exe in that manner:

    wsdl.exe [path to your wsdl file] [paths to xsd files imported by wsdl]
    

    That way wsdl.exe can resolve all dependecies locally and correctly generates proxy class.

    Maybe it will save somebody some time - it solves "missing type" error when service is not avaliable online.

提交回复
热议问题