wse router calling 2 diff webservices

K

kiran & Dev

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\microsof
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top