Dynamically update ASMX web service reference

Asked

Viewed 461 times

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:

Solution Explorer -> Web References

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...

  • 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?

  • Take a look at the following links, and see if it helps you: MSDN Stackoverflow Att.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.