views:

425

answers:

4

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

A: 

I'm sure people can probably figure out what you're talking about by the file names you mentioned but try to give a little more contextual information.

State some things like...

  • Technology you're using (.NET/Python)
  • Framework you're using (WCF/Django) and version
Chad Moran
sorry about that, it was a hurried question
salietata
+1  A: 

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!)

John Rudy
A: 

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
A: 

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