Thanks Samuel but I do not know what you mean by create a server
class.  Are you talking about creating the soap requests from scratch?

On Jun 15, 2:12 am, Cerebrus <[email protected]> wrote:
> Do you wish to modify the webservice address at *runtime* or at
> *install time* ? The link you posted illustrates how to do the latter
> as opposed to what is indicated by your question.
>
> Even if there was a Service.setAddress() method, how would you set the
> value using code? I think the problem boils down to one question - How
> and at what stage (installation/runtime) is the webservice address
> provided?
>
> Modifying configuration files via code is, in my opinion, not usually
> a good idea. It usually indicates that there is a design problem.
>
> On Jun 14, 8:12 am, codecaptain <[email protected]> wrote:
>
>
>
>
>
>
>
> > 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