Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

Connecting to wrong web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yogesh - 23 Nov 2005 06:28 GMT
Hi,
Need some help. I have two copies of the same web services project deployed
in the IIS. The web services are being used by two different applications.
Suppose the web services are WS-1 and WS-2. And the windows applications
using them are App-1 and App-2. I have referenced WS-1 in App-1 and WS-2 in
App2.... But since the WS-1 and WS-2 are exact copies, sometimes App-1
invokes methods in WS-2 and App-2 invokes methods in WS-1. Can anyone suggest
why this could happen, and what is the resolution for the problem...

Any help would be highly appreciated...

Thanks,
Yogesh.
DC - 30 Nov 2005 22:14 GMT
To precisely control what endpoint you connect to, you can specify the
target URL after you instantiate the client-side webservice proxy.

 WebServiceProxy proxy= new WebServiceProxy();
  proxy.Url = "http://localhost/WS-2.asmx";

-D

> Hi,
> Need some help. I have two copies of the same web services project
[quoted text clipped - 12 lines]
> Thanks,
> Yogesh.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.