473,320 Members | 1,909 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,320 software developers and data experts.

How dynamically configure a webservice address?

I have an ASP.Net project, in which I added a web reference, for example
http://Sandbox/service.asmx
after I pass the testing, I want to change the web service address to
http://Production/service/asmx, which has the exactly same interface as the
sandbox.

My question is how to dynamically configure the ASP.Net application point to
the right web service address after I deploy the code from test to
production enviroment without recompile the code?
Anyone can point me to the right direction how to solve this issue? Thanks
Nov 26 '07 #1
1 2051
You can change the value in the web.config file or set the Url propeerty on
the proxy class.
"John Dow" wrote:
I have an ASP.Net project, in which I added a web reference, for example
http://Sandbox/service.asmx
after I pass the testing, I want to change the web service address to
http://Production/service/asmx, which has the exactly same interface as the
sandbox.

My question is how to dynamically configure the ASP.Net application point to
the right web service address after I deploy the code from test to
production enviroment without recompile the code?
Anyone can point me to the right direction how to solve this issue? Thanks
Dec 10 '07 #2

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

Similar topics

1
by: Germic | last post by:
Hi, How can we dynamically create a wrapper for an webservice? Example : I write an client application in C# that consumes a webservice, I need that application to read the URL of the WSDL file...
3
by: T-Man | last post by:
Hello, I have an application in C# that makes calls to a web service and the app currently contains a reference to a WSDL. Since the server technology is a commercial product, some customers...
1
by: Ed S | last post by:
Hi All, We're upgrading our web project - currently we have a web app and a web service - both written in C#. The web app communicates with the web service for login authentication, the list of...
2
by: Call Web service dynamically. | last post by:
I have VC++.NET application which takes the Webservice URL at the runtime from the user and it should call the webservice method based on what the user has supplied.
5
by: lavu | last post by:
I have a C# client application that uses a COM DLL(written in C++) or a webservice (the webservice is the same COM DLL wrapped up as a webservice). The client can dynamically (based on form...
1
by: Ezz | last post by:
I have an interesting problem...and its one of those where I know what I want but don't know how to ask it =) I have an eCommerce application that uses Paypal for its payment gateway. It is an...
4
by: tommaso.gastaldi | last post by:
If one does not configure a virtual dir as an IIS application, he/she receives the common error: ---------------------------------------- Server Error in '/' Application. .... This error can be...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.