Deploy a Windows Application that Calling Web Service

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
 
V

Vadym Stetsyak

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
 
J

John A. Bailo

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top