You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2009/05/03 16:08:20 UTC

svn commit: r771058 - in /synapse/trunk/java: repository/conf/sample/resources/proxy/sample_proxy_1.wsdl repository/conf/sample/synapse_sample_56.xml src/site/xdoc/Synapse_Samples.xml

Author: veithen
Date: Sun May  3 14:08:19 2009
New Revision: 771058

URL: http://svn.apache.org/viewvc?rev=771058&view=rev
Log:
Partial fix for the problems in sample 56.

Modified:
    synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl
    synapse/trunk/java/repository/conf/sample/synapse_sample_56.xml
    synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml

Modified: synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl?rev=771058&r1=771057&r2=771058&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl (original)
+++ synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl Sun May  3 14:08:19 2009
@@ -351,22 +351,22 @@
     </wsdl:binding> 
     <wsdl:service name="SimpleStockQuoteService"> 
         <wsdl:port name="SimpleStockQuoteServiceHttpsSoap11Endpoint" binding="ns:SimpleStockQuoteServiceSoap11Binding"> 
-            <soap:address location="https://DUMMY/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpsSoap11Endpoint"/> 
+            <soap:address location="https://localhost:9002/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpsSoap11Endpoint"/> 
         </wsdl:port> 
         <wsdl:port name="SimpleStockQuoteServiceHttpSoap11Endpoint" binding="ns:SimpleStockQuoteServiceSoap11Binding"> 
-            <soap:address location="http://DUMMY/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint"/> 
+            <soap:address location="http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint"/> 
         </wsdl:port> 
         <wsdl:port name="SimpleStockQuoteServiceHttpSoap12Endpoint" binding="ns:SimpleStockQuoteServiceSoap12Binding"> 
-            <soap12:address location="http://DUMMY/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap12Endpoint"/> 
+            <soap12:address location="http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap12Endpoint"/> 
         </wsdl:port> 
         <wsdl:port name="SimpleStockQuoteServiceHttpsSoap12Endpoint" binding="ns:SimpleStockQuoteServiceSoap12Binding"> 
-            <soap12:address location="https://DUMMY/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpsSoap12Endpoint"/> 
+            <soap12:address location="https://localhost:9002/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpsSoap12Endpoint"/> 
         </wsdl:port> 
         <wsdl:port name="SimpleStockQuoteServiceHttpsEndpoint" binding="ns:SimpleStockQuoteServiceHttpBinding"> 
-            <http:address location="https://DUMMY/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpsEndpoint"/> 
+            <http:address location="https://localhost:9002/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpsEndpoint"/> 
         </wsdl:port> 
         <wsdl:port name="SimpleStockQuoteServiceHttpEndpoint" binding="ns:SimpleStockQuoteServiceHttpBinding"> 
-            <http:address location="http://DUMMY/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpEndpoint"/> 
+            <http:address location="http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpEndpoint"/> 
         </wsdl:port> 
     </wsdl:service> 
 </wsdl:definitions>
\ No newline at end of file

Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_56.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_56.xml?rev=771058&r1=771057&r2=771058&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_56.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_56.xml Sun May  3 14:08:19 2009
@@ -25,7 +25,9 @@
             <send>
                 <!-- get epr from the given wsdl -->
                 <endpoint>
-                    <wsdl uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl" service="SimpleStockQuoteService" port="SimpleStockQuoteServiceSOAP11port_http"/>
+                    <wsdl uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"
+                          service="SimpleStockQuoteService"
+                          port="SimpleStockQuoteServiceHttpSoap11Endpoint"/>
                 </endpoint>
             </send>
         </in>

Modified: synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml?rev=771058&r1=771057&r2=771058&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml Sun May  3 14:08:19 2009
@@ -1285,24 +1285,26 @@
 ...</pre>
 <h2>
 <a name="Sample56" id="Sample56">Sample 56: WSDL endpoint</a></h2>
-<pre xml:space="preserve">&lt;definitions xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
-
-    &lt;sequence name=&quot;main&quot;&gt;
-        &lt;in&gt;
-            &lt;send&gt;
-                &lt;!-- get epr from the given wsdl --&gt;
-                &lt;endpoint&gt;
-                    &lt;wsdl uri=&quot;file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl&quot; service=&quot;SimpleStockQuoteService&quot; port=&quot;SimpleStockQuoteServiceSOAP11port_http&quot;/&gt;
-                &lt;/endpoint&gt;
-            &lt;/send&gt;
-        &lt;/in&gt;
+<pre xml:space="preserve"><![CDATA[<definitions xmlns="http://ws.apache.org/ns/synapse">
 
-        &lt;out&gt;
-            &lt;send/&gt;
-        &lt;/out&gt;
-    &lt;/sequence&gt;
+    <sequence name="main">
+        <in>
+            <send>
+                <!-- get epr from the given wsdl -->
+                <endpoint>
+                    <wsdl uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"
+                          service="SimpleStockQuoteService"
+                          port="SimpleStockQuoteServiceHttpSoap11Endpoint"/>
+                </endpoint>
+            </send>
+        </in>
+
+        <out>
+            <send/>
+        </out>
+    </sequence>
 
-&lt;/definitions&gt;</pre>
+</definitions>]]></pre>
 <p>
 <strong>Objective: Demonstrate the use of WSDL endpoints</strong> </p>
 <p>
@@ -1310,17 +1312,15 @@
 <p>Start the Synapse configuration numbered 56 (i.e. synapse -sample 56). </p>
 <p>Deploy the SimpleStockQuoteService and start the sample Axis2 server. </p>
 <p>This sample uses a WSDL endpoint inside the send mediator. WSDL endpoints can extract endpoint's address from the given WSDL. As WSDL documents can have many services and many ports inside each service, the service and port of the required endpoint has to be specified. As with address endpoints, QoS parameters for the endpoint can be specified in-line in the configuration. An excerpt taken from the sample_proxy_1.wsdl containing the specified service and port is listed below. </p>
-<pre xml:space="preserve">&lt;wsdl:service name=&quot;SimpleStockQuoteService&quot;&gt;
-    &lt;wsdl:port name=&quot;SimpleStockQuoteServiceSOAP11port_http&quot;
-               binding=&quot;axis2:SimpleStockQuoteServiceSOAP11Binding&quot;&gt;
-        &lt;soap:address location=&quot;http://localhost:9000/services/SimpleStockQuoteService&quot;/&gt;
-    &lt;/wsdl:port&gt;
-    &lt;wsdl:port name=&quot;SimpleStockQuoteServiceSOAP12port_http&quot;
-               binding=&quot;axis2:SimpleStockQuoteServiceSOAP12Binding&quot;&gt;
-        &lt;soap12:address location=&quot;http://localhost:9000/services/SimpleStockQuoteService&quot;/&gt;
-    &lt;/wsdl:port&gt;
-&lt;/wsdl:service&gt;</pre>
-<p>Specified service and port refers to the endpoint address &quot;http://localhost:9000/services/SimpleStockQuoteService&quot; according to the above WSDL. Now run the client using the following command. </p>
+<pre xml:space="preserve"><![CDATA[<wsdl:service name="SimpleStockQuoteService"> 
+    <wsdl:port name="SimpleStockQuoteServiceHttpSoap11Endpoint" binding="ns:SimpleStockQuoteServiceSoap11Binding"> 
+        <soap:address location="http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint"/> 
+    </wsdl:port> 
+    <wsdl:port name="SimpleStockQuoteServiceHttpSoap12Endpoint" binding="ns:SimpleStockQuoteServiceSoap12Binding"> 
+        <soap12:address location="http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap12Endpoint"/> 
+    </wsdl:port> 
+</wsdl:service>]]></pre>
+<p>Specified service and port refers to the endpoint address &quot;http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint&quot; according to the above WSDL. Now run the client using the following command. </p>
 <pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8280</pre>
 <p>Client will print the quote price for IBM received from the server running on port 9000. Observe the Axis2 console and the Synapse console to verify this behavior. </p>
 <h2>