Author: ruwan Date: Sun May 3 20:57:15 2009 New Revision: 34742 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=34742
Log: Sync up with the synapse trunk Modified: branches/synapse/1.3-wso2v1/modules/core/pom.xml branches/synapse/1.3-wso2v1/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl branches/synapse/1.3-wso2v1/repository/conf/sample/synapse_sample_56.xml branches/synapse/1.3-wso2v1/src/site/xdoc/Synapse_Samples.xml Modified: branches/synapse/1.3-wso2v1/modules/core/pom.xml URL: http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/modules/core/pom.xml?rev=34742&r1=34741&r2=34742&view=diff ============================================================================== --- branches/synapse/1.3-wso2v1/modules/core/pom.xml (original) +++ branches/synapse/1.3-wso2v1/modules/core/pom.xml Sun May 3 20:57:15 2009 @@ -184,6 +184,13 @@ <artifactId>synapse-vfs-transport</artifactId> <version>${synapse.version}</version> </dependency> + <!-- This is used by the CacheMediator. TODO: since axis2-saaj is based on + Axiom, it should not be necessary to rely on SAAJ and we should try + to eliminate this dependency. --> + <dependency> + <groupId>org.apache.axis2</groupId> + <artifactId>axis2-saaj</artifactId> + </dependency> </dependencies> </project> Modified: branches/synapse/1.3-wso2v1/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl URL: http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl?rev=34742&r1=34741&r2=34742&view=diff ============================================================================== --- branches/synapse/1.3-wso2v1/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl (original) +++ branches/synapse/1.3-wso2v1/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl Sun May 3 20:57:15 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: branches/synapse/1.3-wso2v1/repository/conf/sample/synapse_sample_56.xml URL: http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/repository/conf/sample/synapse_sample_56.xml?rev=34742&r1=34741&r2=34742&view=diff ============================================================================== --- branches/synapse/1.3-wso2v1/repository/conf/sample/synapse_sample_56.xml (original) +++ branches/synapse/1.3-wso2v1/repository/conf/sample/synapse_sample_56.xml Sun May 3 20:57:15 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: branches/synapse/1.3-wso2v1/src/site/xdoc/Synapse_Samples.xml URL: http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/src/site/xdoc/Synapse_Samples.xml?rev=34742&r1=34741&r2=34742&view=diff ============================================================================== --- branches/synapse/1.3-wso2v1/src/site/xdoc/Synapse_Samples.xml (original) +++ branches/synapse/1.3-wso2v1/src/site/xdoc/Synapse_Samples.xml Sun May 3 20:57:15 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> _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
