Deploy a Windows Application that Calling Web Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

When I develop my windows application, I access to my web service using
internal IP. Now I need to deploy the application to remote site. The
remote site connect to my web server through the real IP.

How can I update the settings on remote site so that the application will
look for the web service through the real IP?

Thanks

Tedmond
 
Hello, Tedmond!

T> When I develop my windows application, I access to my web service using
T> internal IP. Now I need to deploy the application to remote site. The
T> remote site connect to my web server through the real IP.

T> How can I update the settings on remote site so that the application
T> will look for the web service through the real IP?

You can store URL of webservice in app config. And before accessing service you will, specify the URI property.

someService.Url = "http://remotesite:repomotePort/service";

"http://remotesite:repomotePort/service" - can be stored in the app config.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Vadym said:
Hello, Tedmond!

T> When I develop my windows application, I access to my web service using
T> internal IP. Now I need to deploy the application to remote site. The
T> remote site connect to my web server through the real IP.

T> How can I update the settings on remote site so that the application
T> will look for the web service through the real IP?

You can store URL of webservice in app config. And before accessing service you will, specify the URI property.

This can be easily added by setting the web reference from 'static' to
'dynamic'. It will automatically add an editable entry in the
app.config file that you can then point to any URL hosting the web service.
 
Back
Top