0

If I change the url in the web.config file will the change be reflected in the .disco, .discomap, and .wsdl files that are in the WebReferences folder?

[Edit]

I'm using asp.net 2005

John Saunders
  • 160,644
  • 26
  • 247
  • 397
ozzijb
  • 674
  • 5
  • 10
  • 17
  • possible duplicate of [Is it possible to change the properties of a WebReference in run-time?](http://stackoverflow.com/questions/211510/is-it-possible-to-change-the-properties-of-a-webreference-in-run-time) – John Saunders Nov 22 '12 at 17:44

3 Answers3

2

The change will not, as far as I'm aware, be reflected in all the other files. However, if you change the URL in web.config, your application will call the web service from the new URL at run-time. Check out this blog entry. (No, it's not one of mine!)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
John Rudy
  • 37,282
  • 14
  • 64
  • 100
1

Assuming you mean in the client, set the Url property at execution time. You can configure this from anywhere you want, so long as you have access to the value at the appropriate time.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
0

As I can remember WSDL file contains the binding(s) (URL mappings) of your WS. So if you change the URL on your machine (in WSDL, Disco, etc.) that's enough.

On the other hand don't forget to regenerate client proxies. They have to reflect WSDL changes.

artur02
  • 4,469
  • 1
  • 22
  • 15