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 / February 2005

Tip: Looking for answers? Try searching our database.

WSE Router calling 2 different webservices using a router

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kiran & Dev - 25 Feb 2005 15:16 GMT
hi all

I am unable to call to different webservices using a router ,

Router looks like this

<?xml version="1.0" ?>

<r:referrals xmlns:r="http://schemas.xmlsoap.org/ws/2001/10/referral">

<r:ref>

<r:for>

<r:exact>http://192.168.200.44/RouterService/StockService.asmx</r:exact>

</r:for>

<r:if />

<r:go>

<r:via>http://192.168.200.122/StockService/StockService.asmx</r:via>

</r:go>

<r:refId>uuid:fa469956-0057-4e77-962a-81c5e292f2ae</r:refId>

</r:ref>

<!--This service is for prem -->

<r:ref>

<r:for>

<r:exact>http://192.168.200.44/RouterService/StockService1.asmx</r:exact>

</r:for>

<r:if />

<r:go>

<r:via>http://192.168.200.126/WebService1/Service1.asmx</r:via>

</r:go>

<r:refId>uuid:267ec72e-5a68-4c54-a872-69c3ba6818ee</r:refId>

</r:ref>

</r:referrals>

stockService and Service1 are two different services and  RouterService is
the router ..

It throws the following exception

Calling http://192.168.200.44/RouterService/StockService.asmx
Web Service called successfully. Simple view:

Symbol: FABRIKAM
       Name:                   Fabrikam, Inc.
       Last Price:             120
       Previous Change:        5.5%

Symbol: CONTOSO
       Name:                   Contoso Corp.
       Last Price:             50.07
       Previous Change:        7.15%
Calling second webservice
http://192.168.200.44/RouterService/StockService1.asmx

****** Exception Raised ******
Web Exception Occured: System.Net.WebException: The request failed with HTTP
sta
tus 404: Not Found.
  at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean
asyncCal
l)
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodN
ame, Object[] parameters)
  at StockServiceClient.Service1.HelloWorld() in c:\program files\microsoft
wse
\v2.0\samples\cs\quickstart\routing\routingclient\service1.cs:line 41
  at StockServiceClient.StockServiceClient.Run() in c:\program
files\microsoft
wse\v2.0\samples\cs\quickstart\routing\routingclient\stockserviceclient.cs:line
95
  at StockServiceClient.StockServiceClient.Main(String[] args) in
c:\program fi
les\microsoft
wse\v2.0\samples\cs\quickstart\routing\routingclient\stockservicec
lient.cs:line 53
******************************

Any suggestions fully appreciated

With Many Thanks
Kiran
kiran & Dev - 28 Feb 2005 06:37 GMT
Got the Problem solved..

Derive proxy from Microsoft.Web.Services2.WebServicesClientProtocol instead
from SoapHttpClientProtocol.

> hi all
>
[quoted text clipped - 100 lines]
> With Many Thanks
> Kiran

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.