开发者

Problem with updating web reference in visual studio

开发者 https://www.devze.com 2023-02-04 17:49 出处:网络
The Problem is that I have a web reference genereted from WSDL file. Now I have new WSDL but the old location where the WSDL was erlier is not accesible.

The Problem is that I have a web reference genereted from WSDL file. Now I have new WSDL but the old location where the WSDL was erlier is not accesible. Where I can change the path to the new WSDL to d开发者_开发问答o update web reference? When I delete my old web reference and add new one with the same name, I don't see the web reference namespace anymore in code classes...any ideas??


It depends on what type your reference is.

If it's a Service reference, then you can change it by right click on that reference and choose "Configure Service Reference". In service reference settings window you will see "Address" field. There you can change your service reference address.

If it's a Web reference, then select that web reference and press F4 key to open Properties window. There you can change your web reference url address.


If you are using WSDL / svcutil to generate the proxy, specify the /namespace option.


  1. In the solution Explorer in VS choose the web reference.
  2. In the Properties panel you'll find Web Reference URL, change it to the new value.
  3. Update web reference.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号