How to programatically set WebService url?

  • Thread starter Thread starter Nicola Garone
  • Start date Start date
N

Nicola Garone

Hi all,
I'm developing a client/server application.
Server publish two WebServices, and clients refer to it. This work on my
computer and in my network.
I need to distribute and install my application to my customers. Each of
them will have their own server.

CustAServer(referenced by) { CustA_client1, CustA_client2, CustA_client3}
CustBServer(referenced by) { CustB_client1, CustB_client2}
 
Hi all,
I'm developing a client/server application.
Server publish two WebServices, and clients refer to it. This work on my
computer and in my network.
I need to distribute and install my application to my customers. Each of
them will have their own server.

CustAServer(referenced by) { CustA_client1, CustA_client2, CustA_client3}
CustBServer(referenced by) { CustB_client1, CustB_client2}
.
.
CustZServer(referenced by) { CustZ_client1, CustZ_client2, CustZ_client3,
....CustZ_clientX}


I don't understand how to programatically set clients to reference for
Web Service request.

Thanks.

When you declare an instance of the proxy class generated for your
WebService, you can set the URL property.

Dim wsProxy as New MyWebService
wsProxy.Url = "whatever"

wsProxy.WebServiceMethod

etc.
 
Back
Top