Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   wse router calling 2 diff webservices (http://www.velocityreviews.com/forums/t784592-wse-router-calling-2-diff-webservices.html)

kiran & Dev 02-25-2005 03:17 PM

wse router calling 2 diff webservices
 
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.SoapHttpClientProtoc ol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean
asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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\routingclie nt\stockserviceclient.cs:line
95
at StockServiceClient.StockServiceClient.Main(String[] args) in
c:\program fi
les\microsoft
wse\v2.0\samples\cs\quickstart\routing\routingclie nt\stockservicec
lient.cs:line 53
******************************


Any suggestions fully appreciated

With Many Thanks
Kiran



All times are GMT. The time now is 07:49 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57