This documentation is for WSO2 Enterprise Service Bus version 4.7.0 . View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

Objective: Demonstrate the use of WSDL endpoints

<definitions xmlns="">
    <sequence name="main">
                <!-- get epr from the given wsdl -->
                    <wsdl uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl" 
						  service="SimpleStockQuoteService" port="SimpleStockQuoteServiceSOAP11port_http"/>


  • Start the Synapse configuration numbered 56: i.e. -sn 56
  • Deploy the SimpleStockQuoteService and start the sample Axis2 server.

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 inline in the configuration. An excerpt taken from the sample_proxy_1.wsdl containing the specified service and port is listed below.

<wsdl:service name="SimpleStockQuoteService">
    <wsdl:port name="SimpleStockQuoteServiceSOAP11port_http"
        <soap:address location="http://localhost:9000/services/SimpleStockQuoteService"/>
    <wsdl:port name="SimpleStockQuoteServiceSOAP12port_http"
        <soap12:address location="http://localhost:9000/services/SimpleStockQuoteService"/>

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.

ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8280

  • No labels