473,395 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Deploy a Windows Application that Calling Web Service

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
Apr 25 '06 #1
2 2191
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
Apr 25 '06 #2
Vadym Stetsyak wrote:
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.

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

Apr 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mullin Yu | last post by:
if i put the same code at the windows application or console, i can logon to the computer. but, if i put the same code at the windows service and start it, i still can't logon to the machine. ...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
2
by: John Spiegel | last post by:
Hi all, I'm attempting to deploy a pretty simple web service to a shared web server that was built w/ Visual Studio. According to MSDN, I should be able to just copy the asmx and bin folder (w/...
2
by: PocketDeveloper | last post by:
I am an experienced developer...but a novice at creating web services, so please have mercy on me! Here is my question: I developed a fairly simple Webservice that returns a table from SQL...
7
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the...
2
by: hulinning | last post by:
Hi, I create my Webservice in 2003 VS and test in Windows 2000 and Windows XP Pro without any problem. When I deploy it over Windows 2003 server, It fails to connect to the WS. I got Anonymous...
28
by: | last post by:
I have a multi threaded windows form application that runs great after calling Application.Run(). Application.Run is required for a COM component I a using in the app (required for message loop). ...
2
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
1
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.