How to change the address location of my wsdl

后端 未结 4 1665
孤独总比滥情好
孤独总比滥情好 2021-01-06 14:17

My wsdl put a wrong domain in address location, How to fix it?

- 
- 

        
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-06 14:58

    The initial response is correct. The default URL in the WSDL is dependent upon the URL used to access the WSDL.

    The way my team handled changing service URLs in the past (for instance, transitioning from a development to a testing or production environment) is to use wsdl.exe to generate a code proxy for your web service (a proxy is actually created by making a web or service reference as well, but is not displayed in Visual Studio by default), you can edit the generated proxy class to read the service's URL from (??) wherever you want to store it - database, config file etc.

提交回复
热议问题