Author: upul Date: Sun Jan 13 22:02:32 2008 New Revision: 12185 Log:
esb samples update Modified: branches/esb/java/1.6/esb/java/modules/distribution/src/main/docs/ESB_Samples.html Modified: branches/esb/java/1.6/esb/java/modules/distribution/src/main/docs/ESB_Samples.html ============================================================================== --- branches/esb/java/1.6/esb/java/modules/distribution/src/main/docs/ESB_Samples.html (original) +++ branches/esb/java/1.6/esb/java/modules/distribution/src/main/docs/ESB_Samples.html Sun Jan 13 22:02:32 2008 @@ -4271,20 +4271,20 @@ <h2><a name="Callout">Synchronize web service invocation with Callout mediator </a></h2> -<p>The Callout mediator does the call for provided service URL with the -request message which get through source attribute and wait for the response -and attached received response to the destination which has specified by the -target. Both of source and target could be a key or a XPath. In the case of -source ,this key refers to either a message context property or to a local -entry and for the target this key refers only to a message context property -.</p> +<p>The Callout mediator calls the given service URL with the request message +which is given by the source attribute, waits for the response and attaches +the received response to the destination which is given by the target +attribute. Both the source and the target can be a key or an XPath. In the +case of the source, this key refers to either a message context property or +to a local entry. For the target, this key refers to a message context +property only. </p> -<h2><a name="Sample430">Sample 430: Simple Callout Mediator for Synchronize -web service invocation </a></h2> +<h2><a name="Sample430" id="Sample430">Sample 430: Simple Callout Mediator +for synchronizing web service invocation</a></h2> <p> </p> -<pre> -  <!-- Simple callout mediator --> +<pre> + <!-- Simple callout mediator --> <definitions xmlns="http://ws.apache.org/ns/synapse"> <callout serviceURL="http://localhost:9000/soap/SimpleStockQuoteService" action="urn:getQuote"> @@ -4299,26 +4299,25 @@ <header name="To" action="remove"/> <send/> <drop/> -</definitions> -</pre> +</definitions> </pre> <div> <p><strong>Objective:</strong> Demonstrate the use of the Callout mediator -for the synchronize web service invocation</p> +for the synchronized web service invocation</p> -<p><strong>Prerequisites:</strong>Deploy the SimpleStockQuoteService in +<p><strong>Prerequisites:</strong> Deploy the SimpleStockQuoteService in sample Axis2 server and start it on port 9000.</p> <p>Start Synapse with the sample configuration 430 (i.e. synapse -sample 430).</p> -<p>In this sample , Callout mediator does the direct service invocation to -the StockQuoteService using the client request and the get the response and -set it as the first child of the SOAP message body. Then using send mediator +<p>In this sample, Callout mediator does the direct service invocation to the +StockQuoteService using the client request, get the response and set it as +the first child of the SOAP message body. Then using the send mediator, the message is sent back to the client. </p> <p>Invoke the client as follows. </p> -</div> <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/</pre> +</div> </body> </html> _______________________________________________ Esb-java-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
