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

Dual Web Service References

I have a UI application that references business objects in Visual Studio on
two identical servers (ws1 & ws2). The business objects are the same so the
methods from each Web Service proxy are the same. I instantiate each Web
Service proxy in the application and call the methods but the methods are
always answered from ws1.

Is this a bug in Visual Studio or must each Web Service proxy contain
uniquely named methods?

The following is code from the application:

--
<applicationSettings>
<DataManager.Properties.Settings>
<setting name="DataManager_ws1_DataAdministrator" serializeAs="String">
<value>http://ws1.domainname.com/DataAdministrator.asmx</value>
</setting>
<setting name="DataManager_ws2_DataAdministrator" serializeAs="String">
<value>http://ws2.domainname.com/DataAdministrator.asmx</value>
</setting>
</DataManager.Properties.Settings>
</applicationSettings>

--
DataManager.ws1.DataAdministratorSoap admin1 =
new DataManager.ws1.DataAdministratorSoap();
DataManager.ws2.DataAdministratorSoap admin2 =
new DataManager.ws2.DataAdministratorSoap();

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Nov 13 '06 #1
2 1215
Hi Fred,

If the web services are identical, there is not reason to have two different
proxy classes on the client side. You can have only one proxy (You add the
web service reference once), and set the right URL before using it.

For example,

DataManager.ws.DataAdministratorSoap admin1 = new
DataManager.ws.DataAdministratorSoap();
admin.Url = http://ws1.domainname.com/DataAdministrator.asmx";

DataManager.ws.DataAdministratorSoap admin2 = new
DataManager.ws.DataAdministratorSoap();
admin.Url = http://ws2.domainname.com/DataAdministrator.asmx";
Regards,
Pablo Cibraro.

"Fred Chateau" <fc******@127.0.0.1wrote in message
news:eg**************@TK2MSFTNGP03.phx.gbl...
>I have a UI application that references business objects in Visual Studio
on two identical servers (ws1 & ws2). The business objects are the same so
the methods from each Web Service proxy are the same. I instantiate each
Web Service proxy in the application and call the methods but the methods
are always answered from ws1.

Is this a bug in Visual Studio or must each Web Service proxy contain
uniquely named methods?

The following is code from the application:

--
<applicationSettings>
<DataManager.Properties.Settings>
<setting name="DataManager_ws1_DataAdministrator" serializeAs="String">
<value>http://ws1.domainname.com/DataAdministrator.asmx</value>
</setting>
<setting name="DataManager_ws2_DataAdministrator" serializeAs="String">
<value>http://ws2.domainname.com/DataAdministrator.asmx</value>
</setting>
</DataManager.Properties.Settings>
</applicationSettings>

--
DataManager.ws1.DataAdministratorSoap admin1 =
new DataManager.ws1.DataAdministratorSoap();
DataManager.ws2.DataAdministratorSoap admin2 =
new DataManager.ws2.DataAdministratorSoap();

--
Regards,

Fred Chateau
fchateauAtComcastDotNet

Nov 14 '06 #2
"Pablo Cibraro [MVP]" <pc******@hotmail.comwrote ...
If the web services are identical, there is not reason to have two
different proxy classes on the client side. You can have only one proxy
(You add the web service reference once), and set the right URL before
using it.
Apparently there's a good reason to have only one proxy. The application
works using your suggestion.

Thanks.

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Nov 14 '06 #3

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

Similar topics

9
by: Tomer Ben-David | last post by:
Hi I have a big j2ee appliction that was so forth run on a single cpu machine. I have tested it on a dual cpu machine, its running much slower (about X3 times slower). I know that...
1
by: Frank | last post by:
Hi, we are using oracle clients (Release 9.0.1.0.1 - Production) on an NT4 (Service Pack6) computers. the server is a W2K, (Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the...
6
by: robert | last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread. It is mainly with cookielib, but remember the...
1
by: Frank | last post by:
Hi, we are using oracle clients (Release 9.0.1.0.1 - Production) on an NT4 (Service Pack6) computers. the server is a W2K, (Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.