Create web service proxy in Visual Studio from a WSDL file

前端 未结 7 1893
别跟我提以往
别跟我提以往 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:54

    There's a Microsoft Doc for creating your WCF proxy from the command line .

    You can find your local copy of wsdl.exe in a location similar to this: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools (Learn more here)

    In the end your Command should look similar to this:

    "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\wsdl.exe"
     /language:CS /n:"My.Namespace" https://www.example.com/service/wsdl
    

提交回复
热议问题