I'm building a C# application that accesses a SOAP web service that is
accessible at different addresses depending on the user.  The reason
is that the software running the service is installed on the client's
server.  Each client has employees that run my app (consuming the
SOAP) on their PCs.  My app asks the employee for his company's server
address and then my app makes soap requests to that server.  I've got
SOAP working but now I can't figure out how to change the service
address at runtime.  It seems that the address is stored in app.config
but it seems sloppy to directly edit that file.

I've scoured the net for answers and I've found a few articles but
none of them seem elegant.  Here is the most promising article:
http://msdn.microsoft.com/en-us/library/5k10s063(vs.71).aspx.  I'm
sure this will work but it seems laborious.  I'm looking for something
like service.setAddress(...).

Any help is greatly appreciated.  Thank you.

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to