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

how to change url for webservice

I have an app I developed and tested everything using one url provided
to me. Now the web service people came back and told me they changed
the url. How can I change the code to reflect the new url without major
change to my code. I have the url in my config file so I can change the
url there but how about the proxy that get generated?

Also is it possible to have the code pointed to multiple urls based on
some other configuration?

Thanks.

Sep 1 '06 #1
2 1294
The address is hardcoded in the web service proxy. You'll see a line like
"this.URL = """. Just change it here.

if you want to change the url at runtime, create an instance of your proxy,
then change the url... ws.URL = "<new url>"

Mike
http://www.seeknsnatch.com

"DBC User" <db*****@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
>I have an app I developed and tested everything using one url provided
to me. Now the web service people came back and told me they changed
the url. How can I change the code to reflect the new url without major
change to my code. I have the url in my config file so I can change the
url there but how about the proxy that get generated?

Also is it possible to have the code pointed to multiple urls based on
some other configuration?

Thanks.

Sep 1 '06 #2
"Michael" <in**@seeknsnatch.comwrote in message
news:44***********************@news.free.fr...
The address is hardcoded in the web service proxy. You'll see a line like
"this.URL = """. Just change it here.

if you want to change the url at runtime, create an instance of your
proxy, then change the url... ws.URL = "<new url>"
Note that it's also possible to set the "URL behavior" to "Dynamic" in the
properties of the web reference. When you do this, an entry will be made in
the client applications's configuration file. Then, it will only be
necessary to change the config file when you want to change server URL.

John
Sep 1 '06 #3

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

Similar topics

6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
6
by: mekim | last post by:
Hello, I have a webservice client that needs to change which webservice server it calls? I keep reading change the webservice.url ...but I don't see that property regards, mekim
0
by: Naes | last post by:
Hello, Does anyone know of a way to change the Content-Type of a WebService? It defaults to utf-8 and I have heard that it cannot be changed. I am currently working with Cyrillic and I need to...
0
by: JAA | last post by:
I have made a webservice which spits out some XML data. This data gets the processing-instruction: <?xml version="1.0" encoding="uft-8"?> Is it possible to change the encoding of this...
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
5
by: Sara | last post by:
How could i detect there is a change to web service that has already accessed
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
8
by: Maxi | last post by:
Hello, i'm sorry my bad english :( I have CR9 Webservice, how to change databadse name and User_name into Webservice method? (not Viewer Control) Tks!! -- --------------------------
2
jlrodrigues
by: jlrodrigues | last post by:
Hello. I'm not sure if this is the right forum (also posted in ASP forum), but my problem is the following: I have a Webservice e need to access by HTTP POST. I have this method that returns a...
6
by: Andrew Jocelyn | last post by:
Hi How do I programmatically change (read/write) the values in this app.config file at runtime? Specifically I want to change the client endpoint address but it would be nice to change other...
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
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.