You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by hi...@apache.org on 2010/12/29 11:08:27 UTC

svn commit: r1053594 - in /synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide: samples.xml samples/sample430.xml

Author: hiranya
Date: Wed Dec 29 10:08:26 2010
New Revision: 1053594

URL: http://svn.apache.org/viewvc?rev=1053594&view=rev
Log:
callout mediator

Modified:
    synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples.xml
    synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample430.xml

Modified: synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples.xml?rev=1053594&r1=1053593&r2=1053594&view=diff
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples.xml (original)
+++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples.xml Wed Dec 29 10:08:26 2010
@@ -166,26 +166,26 @@
                 <h4>XQuery Mediator</h4>
                 <p>
                     <ul>
-                        <li><a href="#Sample390">Sample 390: Introduction to the XQuery mediator</a></li>
-                        <li><a href="#Sample391">Sample 391: Using external XML documents in the XQuery mediator</a></li>
+                        <li><a href="samples/sample390.html">Sample 390: Introduction to the XQuery mediator</a></li>
+                        <li><a href="samples/sample391.html">Sample 391: Using external XML documents in the XQuery mediator</a></li>
                     </ul>
                 </p>
                 <h4>Iterate Mediator and Aggregate Mediator</h4>
                 <p>
                     <ul>
-                        <li><a href="#Sample400">Sample 400: Message splitting and aggregation</a></li>
+                        <li><a href="samples/sample400.html">Sample 400: Message splitting and aggregation</a></li>
                     </ul>
                 </p>
                 <h4>Cache Mediator</h4>
                 <p>
                     <ul>
-                        <li><a href="#Sample420">Sample 420: Simple response caching scenario</a></li>
+                        <li><a href="samples/sample420.html">Sample 420: Simple response caching scenario</a></li>
                     </ul>
                 </p>
                 <h4>Callout Mediator</h4>
                 <p>
                     <ul>
-                        <li><a href="#Sample430">Sample 430: Simple Callout Mediator for synchronize web service invocation</a></li>
+                        <li><a href="samples/sample430.html">Sample 430: Callout mediator for synchronous web service invocations</a></li>
                     </ul>
                 </p>
                 <h4>URL Rewrite Mediator</h4>

Modified: synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample430.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample430.xml?rev=1053594&r1=1053593&r2=1053594&view=diff
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample430.xml (original)
+++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample430.xml Wed Dec 29 10:08:26 2010
@@ -23,7 +23,7 @@
         <title>Apache Synapse - Sample 430</title>
     </properties>
     <body>
-        <section name="Sample 430: ">
+        <section name="Sample 430: Callout Mediator for Synchronous Web Service Invocations">
             <div class="xmlConf">&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="main"&gt;
@@ -45,7 +45,8 @@
 &lt;/definitions&gt;</div>
             <subsection name="Objective">
                 <p>
-
+                    Demonstrate the usage of the callout mediator for making synchronous (blocking)
+                    Web service calls during mediation
                 </p>
             </subsection>
             <subsection name="Pre-requisites">
@@ -65,11 +66,17 @@
                 </p>
             </subsection>
             <subsection name="Executing the Client">
+                <p>
+                    In this sample, the callout mediator does the direct service invocation to the
+                    StockQuoteService using the client request, gets the response and sets it as the
+                    first child of the SOAP message body. Then using the send mediator, the message
+                    is sent back to the client. As a result there is no need to define any endpoints
+                    in this configuration.
+                </p>
+                <p>
+                    Invoke the client as follows.
+                </p>
                 <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</div>
-
-                <div class="consoleOutput">Sat Nov 18 21:01:23 IST 2006 SimpleStockQuoteService :: Generating quote for : IBM</div>
-
-                <div class="consoleOutput">Standard :: Stock price = $95.26454380258552</div>
             </subsection>
         </section>
         <p><a href="../samples.html">Back to Catalog</a></p>