Author: hiranya
Date: Mon Nov 29 23:13:04 2010
New Revision: 1040335

URL: http://svn.apache.org/viewvc?rev=1040335&view=rev
Log:
Sample 50


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

Modified: 
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample13.xml
URL: 
http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample13.xml?rev=1040335&r1=1040334&r2=1040335&view=diff
==============================================================================
--- 
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample13.xml
 (original)
+++ 
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample13.xml
 Mon Nov 29 23:13:04 2010
@@ -85,9 +85,7 @@ Standard dual channel :: Stock price = $
                     is gpoing on a different channel listening on the port 
8200. Please note that it
                     is required to engage addressing when using the dual 
channel invocation because
                     it requires the wsa:Reply-To header.
-                </p>
-
-                <div class="consoleOutput">Standard :: Stock price = 
$95.26454380258552</div>
+                </p>                
             </subsection>
         </section>
         <p><a href="../samples.html">Back to Catalog</a></p>

Modified: 
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample50.xml
URL: 
http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample50.xml?rev=1040335&r1=1040334&r2=1040335&view=diff
==============================================================================
--- 
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample50.xml
 (original)
+++ 
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/samples/sample50.xml
 Mon Nov 29 23:13:04 2010
@@ -23,7 +23,7 @@
         <title>Apache Synapse - Sample 50</title>
     </properties>
     <body>
-        <section name="Sample 50: ">
+        <section name="Sample 50: POX to SOAP Conversion">
             <div class="xmlConf">&lt;definitions 
xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="main"&gt;
@@ -44,7 +44,8 @@
 &lt;/definitions&gt;</div>
             <subsection name="Objective">
                 <p>
-
+                    Demonstrating how to convert a POX (Plain Old XML) message 
to a standard SOAP 1.1
+                    request.
                 </p>
             </subsection>
             <subsection name="Pre-requisites">
@@ -64,11 +65,35 @@
                 </p>
             </subsection>
             <subsection name="Executing the Client">
-                <div class="command">ant stockquote 
-Daddurl=http://localhost:9000/services/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8280/</div>
+                <p>
+                    Execute the sample client as follows and send a plain XML 
getQuote request to
+                    Synapse.
+                </p>
+                <div class="command">ant stockquote 
-Dtrpurl=http://localhost:8280/services/StockQuote -Drest=true</div>
 
-                <div class="consoleOutput">Sat Nov 18 21:01:23 IST 2006 
SimpleStockQuoteService :: Generating quote for : IBM</div>
+                <p>
+                    The request sent by the client will look something like 
this.
+                </p>
+                <div class="consoleOutput">POST /services/StockQuote HTTP/1.1
+Content-Type: application/xml; charset=UTF-8;action=&quot;urn:getQuote&quot;;
+SOAPAction: urn:getQuote
+User-Agent: Axis2
+Host: 127.0.0.1
+Transfer-Encoding: chunked
 
-                <div class="consoleOutput">Standard :: Stock price = 
$95.26454380258552</div>
+75
+&lt;m0:getQuote xmlns:m0=&quot;http://services.samples&quot;&gt;
+   &lt;m0:request&gt;
+      &lt;m0:symbol&gt;IBM&lt;/m0:symbol&gt;
+   &lt;/m0:request&gt;
+&lt;/m0:getQuote&gt;0</div>
+                <p>
+                    Note that this is simply an XML payload going over the 
HTTP connection. It is
+                    not a SOAP envelope and hence the content type is set to 
application/xml. Synapse
+                    will convert the above message to a valid SOAP 1.1 request 
and send to the sample
+                    Axis2 server. The response from Axis2 will also be a SOAP 
message, which will
+                    be converted back to POX format before sending back to the 
client.
+                </p>
             </subsection>
         </section>
         <p><a href="../samples.html">Back to Catalog</a></p>        


Reply via email to