2
Reply

Changing url of web service

kstallings

kstallings

Aug 16 2005 4:33 PM
2.7k

I want to programmically change the IP address of a Web Service that my client pc is accessing. I am using the following code:

string ServerURL=@"http://10.20.30.40/IPA/ERalEXService.asmx";
lcws.Url=ServerURL;

If I then use a messagebox to display the Url it seems that I have indeed changed it. The problem is that the machine keeps communicating to the original IP.

Any ideas?
Keith Stallings


Answers (2)