How to get the wsdl file from a webservice's URL

后端 未结 4 1822
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 01:17

I want to get the WSDL file for a webservice and the only thing I have is its URL (like webservice.example/foo).

If I use the URL directly only an error response is

4条回答
  •  时光说笑
    2020-12-08 02:22

    To download the wsdl from a url using Developer Command Prompt for Visual Studio, run it in Administrator mode and enter the following command:

     svcutil /t:metadata http://[your-service-url-here]
    

    You can now consume the downloaded wsdl in your project as you see fit.

提交回复
热议问题