Change URL in Web service at Runtime

G

Guest

Is that possible in .net to change the target web service at runtime. ie.
change the URL and access a different web service totally. which does totally
different things but has the same Definition.

IE Service1.asmx WEBMETHOD(BYVAL as Integer)
Server2.asmx WEbMETHOD(Byval as integer)
Service3.asmx WEbmethod(byval as integer) and so on....

I know its possible with SOAP TOOLKIT. But i dont want to use that. Is that
possible in VB.net ??
Just to change the URL everytime?

Cheers
C
 
C

Cor Ligthert

Gujju,

When you use a webservice in VBNet you don't know all information that what
you write. It is collected by VSNet.

That creates a webclass from which you can use the members like this.

Dim myservice1 as new webserversite1.myservice
Dim myservice2 as new webserversite2.myservice

I hope this gives an idea

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top