views:

52

answers:

1

I am building a C# application that is consuming a WSDL that is hosted by a server on our network. When I use the "Add Web Reference" functionality of Visual Studio, it works just fine, saving the ip address of the machine, etc. and the SOAP calls work without any issue.

We are now making this entire application portable so that it can be installed in any environment. We would like to place all of our settings in one configuration file, so my question is this: Is it possible to somehow specify the IP address of the machine that is hosting the SOAP service in my configuration file and link everything dynamically at runtime?

+3  A: 

You need to set Url of the service like this: Web Service URL should be a config setting --- it already is!

Giorgi
Thanks! This let me solve my problem in no time at all.
Wade Tandy