Allow run-time configuration of web service url using ATL soap and sproxy-generated proxy class

Posted by Odrade on Stack Overflow See other posts from Stack Overflow or by Odrade
Published on 2010-03-26T14:27:52Z Indexed on 2010/03/26 14:33 UTC
Read the original article Hit count: 361

I have a Visual C++ application that communicates with an ASP.NET web service via ATL Soap. The client application uses an sproxy-generated proxy class for the communication. Looking at the generated proxy class, I noticed that the url for the web service is hard-coded in numerous places.

It would be preferable for the url to be configurable at run-time (e.g. stored in a config file). Could anyone recommend a method for doing this? It doesn't look like the class generated by sproxy is amenable to hand-editing.

© Stack Overflow or respective owner

Related posts about sproxy

Related posts about atl-server