473,508 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

config file webreferencing

Hello,

My problem is simple, and i'm sure have been solved thousand of times...

I want to specify my webservices server address in a configuration file,
so i can change server without playing with visual studio adding/removing
webreferences...

Any ideas?

Thanks,
Vincent.
May 2 '06 #1
2 856
If you subclass the generated proxy for the webservice there is a field for
URL that you can set.
http://www.codeproject.com/cs/webser...&select=657651
does this by editting the generated code, I prefer subclassing but same
general concept.

Cheers,

Greg
"vincent" <no@spam.com> wrote in message
news:f9*************************@news.microsoft.co m...
Hello,

My problem is simple, and i'm sure have been solved thousand of times...

I want to specify my webservices server address in a configuration file,
so i can change server without playing with visual studio adding/removing
webreferences...

Any ideas?

Thanks,
Vincent.

May 2 '06 #2
Thanks Greg for the fast answer! :)
If you subclass the generated proxy for the webservice there is a
field for URL that you can set.

http://www.codeproject.com/cs/webser...ices.asp?df=10
0&forumid=25858&exp=0&select=657651 does this by editting the
generated code, I prefer subclassing but same general concept.

Cheers,

Greg

"vincent" <no@spam.com> wrote in message
news:f9*************************@news.microsoft.co m...
Hello,

My problem is simple, and i'm sure have been solved thousand of
times...

I want to specify my webservices server address in a configuration
file, so i can change server without playing with visual studio
adding/removing webreferences...

Any ideas?

Thanks,
Vincent.

May 2 '06 #3

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

Similar topics

13
2981
by: Maxim Khesin | last post by:
I want to have a config file with my python proggie, satisfying the following requirements: 1) support key->(value, default) 2) simple and intuitive to read and edit 3) easyly readable into a...
4
3808
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
12
13406
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
5
7809
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
7227
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
7127
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
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5633
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
5056
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
4713
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
1564
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
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
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.