All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correcting endpoint urls


Code Block
<!-- The example use of content based routing -->
<definitions xmlns="">
    <!-- The service which the sender will be invoking --> 
    <proxy name="ContentBasedRoutingProxy">
           <!-- When a request arrives the following sequence will be followed -->    
			 <!-- The content of the incoming message will be isolated -->
             <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples">
            	    <!-- The isolated content will be filtered --> 
                    <case regex="foo">
               			<!-- Will Route the content to the appropriate destination -->   
                   				 <address uri="http://localhost:9001/services/SimpleStockQuoteService?wsdl"/>
            		<case regex="bar">
                    			<address uri="http://localhost:9002/services/SimpleStockQuoteService?wsdl"/>
               		 <!-- it is possible to assign the result of an XPath expression as well -->
                	<property name="symbol" expression="fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)" xmlns:m0="http://services.samples"/>