The Destination Web Services


For all of our routing scenarios, we’ll use Web services that have exactly the same functionality. We’re not concerned with what we can do at the destination Web service; we’re concerned only with how the message arrives at that Web service.

Each Web service that we’ll use exposes one method, Echo, which simply returns a string containing the URL of the executing Web service as well as the route that the message took to reach it.

The route is determined by looking at the Path object of the request’s SoapContext object because this contains the route that the received message took.

We can interrogate the collections returned from the Rev and Fwd properties of the Path object and concatenate these to the return string, showing the route that the message took.




Programming Microsoft. NET XML Web Services
Programming MicrosoftВ® .NET XML Web Services (Pro-Developer)
ISBN: 0735619123
EAN: 2147483647
Year: 2005
Pages: 172

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net