473,322 Members | 1,473 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.

Dynamically changing web services

Hello all.

I built a distributed application that is used for message transferring to
different locations. The basic flow is as follows...

1. User logs in to app - app queries central database on Internet via web
methods - which return the IP and URL of the local server to attach to...
depending on where the user resides.

2. The local server ... say in NY or in CA are already preloaded with the
webservices to handle the messagin and are identical in build / OS and
framework.

so - the question I have is this:

If I add the web service proxy into the client app (as they are identical to
the local servers they are connecting to), is there a way to assign /
reassign the location of the web services at runtime?

thanks in advance,

inzo
Nov 23 '05 #1
2 1605
"inzo" <in**@discussions.microsoft.com> wrote in message
news:A0**********************************@microsof t.com...
If I add the web service proxy into the client app (as they are identical
to
the local servers they are connecting to), is there a way to assign /
reassign the location of the web services at runtime?


Hi inzo,

select your web service in web references in solution explorer and open
properties window. There is a property called location or something like
that. Change the property to dynamic and VS.NET will place a new setting in
your config file that identifies the location of your service. Anyway you
can control the proxy class by setting its Url property. That will change
the location of your web service proxy.

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Nov 23 '05 #2
> select your web service in web references in solution explorer and open
properties window. There is a property called location or something like
that. Change the property to dynamic and VS.NET will place a new setting
in your config file that identifies the location of your service. Anyway
you can control the proxy class by setting its Url property. That will
change the location of your web service proxy.

That works. You can also change the URL from code:

localhost.Service serv = localhost.Service();
serv.Url = "http://YourUrlHere";

Greetings,
Wessel
Nov 23 '05 #3

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

Similar topics

2
by: Satish Kumar Chimakurthi | last post by:
Hi all, An external solver program is dynamically producing files with different names 0000001.dat, 0000002.dat, 0000003.dat etc.....at regular intervals. These files contain all numeric data....
1
by: Benjamin | last post by:
Hi, I'm currently writing a Web Services that interacts with a database. To allow me to use not just one database provider (for example, I could use MS Access, SQL Server or MySQL), the Web...
1
by: encapsul | last post by:
With XPpro, I am programmatically creating sub-folders within the virtual directory of my app. I programmatically set read/write permissions and then successfully write some files to the...
8
by: Nils Magnus Englund | last post by:
Hi, I have a production, test and development environment for my web application and a web service (The test web application connects to the test web service, and so on). Is it possible to...
2
by: Sheila | last post by:
Hi, I published a web service and tested working fine when calling this web service from a windows application. The web service reference URL is defined in web service properties. Now I want the...
1
by: RM82 | last post by:
Hi All, I am not sure if this approach is feasible. But i have a timesheets application that works for several small organisations. One of the companies has a small office in South Africa and...
2
by: lprisr | last post by:
Hi, I have double byte characters in the content that I am returning using Web Services. However, the encoding in the xml file returned by Web Services is utf-8 and I am unable to read the...
4
by: assgar | last post by:
Hi I am stuck on a problem. I use 3 scripts(form, function and process). Development on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. The form displays...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
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...
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: 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...
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: 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...
1
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
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.