Dynamic WSDL Location in .NET

Posted by wadetandy on Stack Overflow See other posts from Stack Overflow or by wadetandy
Published on 2010-06-09T19:17:44Z Indexed on 2010/06/09 19:22 UTC
Read the original article Hit count: 253

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET