473,511 Members | 16,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding web service ref

Hi,

I am having a web application developed with me which contains a reference to a web service which is on the local network.Now I am creating the setup project for the web application. I will be deploying the application on another machine and I want to change the web reference that I have added.

As we do it for the database connection string which we put in the we.config file and could be changed later at any time. Is there any such method for changing the web reference??

Thanks in advance
Jul 21 '05 #1
2 1589
There is something called a "dynamic URL"

try this
http://msdn.microsoft.com/library/en...ItemObject.asp

To do this in VS, in Solution Explorer, highlight the Web reference in the
Properties window and change the URL behavior property from static to
dynamic. Now a corresponding appSettings section will be added to your
Web.config
"Kshitij" <Ks*****@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Hi,

I am having a web application developed with me which contains a reference to a web service which is on the local network.Now I am creating the setup
project for the web application. I will be deploying the application on
another machine and I want to change the web reference that I have added.
As we do it for the database connection string which we put in the we.config file and could be changed later at any time. Is there any such
method for changing the web reference??
Thanks in advance

Jul 21 '05 #2
You can change the URL Property of your webservice reference object to the desired value.

MyWS ows = new MyWs();
ows.Url = ConfigurationSettings.AppSettings["MyWSURL"].ToString();

You can place the url in your web.config

"Dino Chiesa [Microsoft]" wrote:
There is something called a "dynamic URL"

try this
http://msdn.microsoft.com/library/en...ItemObject.asp

To do this in VS, in Solution Explorer, highlight the Web reference in the
Properties window and change the URL behavior property from static to
dynamic. Now a corresponding appSettings section will be added to your
Web.config
"Kshitij" <Ks*****@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
Hi,

I am having a web application developed with me which contains a reference

to a web service which is on the local network.Now I am creating the setup
project for the web application. I will be deploying the application on
another machine and I want to change the web reference that I have added.

As we do it for the database connection string which we put in the

we.config file and could be changed later at any time. Is there any such
method for changing the web reference??

Thanks in advance


Jul 21 '05 #3

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

Similar topics

1
1571
by: Jeff Dillon | last post by:
I'm using the webservice I've created: http://www.emergencyreporting.com/ERSWebService/ERSDispatch.asmx When building a client VB.NET app, and adding a web reference to the above file, I see...
3
5743
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three...
1
3624
by: rgarf | last post by:
I have a web service that is consumed by a C++ application. I added a C# dll reference to the web service, When the web service calls a method on the dll, it sends back an HRESULT of E_FAIL to my...
4
3479
by: razvan | last post by:
I need advice about adding security to a web service without using WSE, as the clients will run Win98.
4
3702
by: glebur | last post by:
Hi, I'm trying to create a web service client in C# but I get stuck at one of the first steps. When adding a Web reference to the Visual Studio project; I get this error (this is a translation,...
0
1031
by: bostjanj | last post by:
Hi, I have a problem adding web service to project. I get the following error: There was an error downloading '/service.asmx'. The request failed with the error message: Object moved to...
4
2821
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
0
2341
by: =?Utf-8?B?QW5keSBZdQ==?= | last post by:
Hi, I'm trying to return exceptions from a WCF Service using FaultExceptions. I got the service compiled and running. But I get an error while adding a service reference to it. The error reads: "...
2
1402
by: Jay Balapa | last post by:
Hello, We have a webservice which is called by our pocket pc apps. We have a need to filter data, so we want to add a another method on top to the existing method. Existing Service.asmx...
0
1404
by: AndyL69 | last post by:
Hello I've got a very strange Problem. When im adding a new ACE entry to a UNC Direcotry the inherented ACL's will be lost. When I'm adding a new ACE to a directory / file in this UNC path the...
0
7138
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
7423
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
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.