Smart Web References and how to change localhost

Topics: CAB & Smart Client Software Factory
Jun 17, 2006 at 1:20 AM
originally posted by: GregShaw

Smart Web Reference creates a web reference to a web service. Great. In my project and the RI that means localhost. If I look at Reference.cs I see the URL is hard coded to localhost.

How are people handling the situation where you develop using localhost and deploy using some production server? How do you get settings into the web reference? Now, WebServiceProxies does have an app.config with some parameters in it but it doesn't get copied to the bin directory and therefore isn't used. And even if it did wouldn't it conflict with other app.configs?

How canI get these settings integrated into Enterprise Library Configuration?

Too many questions.

Any answers?
Thanks, Greg.
Jun 20, 2006 at 5:43 AM
originally posted by: ksunair

I am using Smart web reference and ran into lot of problems. To answer your question, I think you can change the url thorugh the service the GAD generates. Have you looked at the properties of the service?