change webservice address at runtime?
-
hi there i made a webservice and then i added a web reference of it to my project Now is it possible to change JUST the webservice's ADDRESS at runtime?
this.Url = "http://localhost/testing.asmx";
I want to change the address of my WS in
the reference.cs file at runtimeAnd if it is, then can someone plz tell me how? some code might be nice! VisionTec
-
hi there i made a webservice and then i added a web reference of it to my project Now is it possible to change JUST the webservice's ADDRESS at runtime?
this.Url = "http://localhost/testing.asmx";
I want to change the address of my WS in
the reference.cs file at runtimeAnd if it is, then can someone plz tell me how? some code might be nice! VisionTec
You just did it yourself with that first line of code! :) Create an instance of your web service client proxy (which derives from
WebClientProtocol
) and set theUrl
property to whatever you need it to be.Microsoft MVP, Visual C# My Articles
-
hi there i made a webservice and then i added a web reference of it to my project Now is it possible to change JUST the webservice's ADDRESS at runtime?
this.Url = "http://localhost/testing.asmx";
I want to change the address of my WS in
the reference.cs file at runtimeAnd if it is, then can someone plz tell me how? some code might be nice! VisionTec