473,396 Members | 2,011 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,396 software developers and data experts.

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 1587
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
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
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
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
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
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
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
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
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
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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.