How to Pass Parameter Value

Hi,

In my webservice, i have a method called Addition and it takes one parameter. My question is, how to create routing table in the manifest.xml file and how to send this parameter to my web service

Thanks in Advance. It would be a big help, if u send the sample code. Becuase, i am new to this CSF and i just changed the HelloWorld Sample.

Regards,

Rajasekaran



Answer this question

How to Pass Parameter Value

  • Saravanakumars38

    Let us say web service you have method 'GetWeather(GetWeatherRequest)' that takes GetWeatherRequest as parameter and consider that the namespace of this getWeatherRequest XML schema is 'http://www.contoso.com/services/weather' . If you want to use message based routing you can use MESSAGE( this is root element of your parameter on the wire and MESSAGENS ( name space of the your parameter on the wire) in the routing criteria. It looks as follows. This means all the messages containing 'GetWeatherRequest' as root element of the soap message body with namespace 'http://www.contoso.com/services/weather' will be routed to weather service.

    <RoutingTable version="0"timestamp="0001-01-01T00:00:00.0000000-08:00">
    <Routes>
    <Route>
    <Criteria>MESSAGE EQ 'GetWeatherRequest' AND MESSAGENS EQ 'http://www.contoso.com/services/weather' </Criteria>
    <Destination>WeatherService[GetWeather]</Destination>
    </Route>

    </Routes>
    </RoutingTable>


  • How to Pass Parameter Value