Changing Web Service at run-time

  • Thread starter Thread starter Matt Tapia
  • Start date Start date
M

Matt Tapia

I am writing a windows application that uses a web service however the
location of the web service is not always the same. It seems when I create a
windows application to use the web service, the location of the service is
hard-coded into the application. Is this true or can I change the location
of the web service at run-time?

Thanks!
 
Matt,

You can dynamically change the location of the Web service using the Url
property on the generated proxy. This, of course, comes with the caveat that
the WSDL definition must be exactly the same in each location.

--Neil
 
Back
Top