2
Answers

Changing url of web service

kstallings

kstallings

19y
2.7k
1

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)