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"><definitions
xmlns="http://ws.apache.org/ns/synapse">
-
- <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="SimpleStockQuoteServiceSOAP11port_http"/>
- </endpoint>
- </send>
- </in>
+<pre xml:space="preserve"><![CDATA[<definitions
xmlns="http://ws.apache.org/ns/synapse">
- <out>
- <send/>
- </out>
- </sequence>
+ <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>
-</definitions></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"><wsdl:service
name="SimpleStockQuoteService">
- <wsdl:port name="SimpleStockQuoteServiceSOAP11port_http"
-
binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
- <soap:address
location="http://localhost:9000/services/SimpleStockQuoteService"/>
- </wsdl:port>
- <wsdl:port name="SimpleStockQuoteServiceSOAP12port_http"
-
binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
- <soap12:address
location="http://localhost:9000/services/SimpleStockQuoteService"/>
- </wsdl:port>
-</wsdl:service></pre>
-<p>Specified service and port refers to the endpoint address
"http://localhost:9000/services/SimpleStockQuoteService" 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
"http://localhost:9000/services/SimpleStockQuoteService.SimpleStockQuoteServiceHttpSoap11Endpoint"
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>