2
I have a C# application that consumes a webservice asmx (which is also developed in C#).
Whenever I publish a new version of the webservice, I need to update the reference (of the webservice) in the applications that consume it. The update operation is just right click on the reference and click on Update Web Reference, as shown in the image below:
Is there any way to do this via code?
The "Update Web Reference" menu uses the same code as the tool
wsdl.exe
. Maybe not via code (C#), but you can use it in an Msbuild project, or via command-line (.cmd, .bat) for...– carlosfigueira
I don’t think I understand your need. When you update the web service reference it changes your proxy, which can cause you build errors in the application. What is the advantage of automating this if you have a good chance of changing your application?
– Diego Jeronymo
Take a look at the following links, and see if it helps you: MSDN Stackoverflow Att.
– Jhonathan