Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleThe Synapse configurations of the artifacts
Tip

When you unzip the ZIP file you download below in Step 6 when simulating the sample scenario, you can find the below configurations in the <UNZIPPED_FILE>/src/main/synapse-config directory. For more information about these artifacts, go to WSO2 EI Documentation.

Code Block
languagexml
titleProxy Service
<?xml version="1.0" encoding="UTF-8"?>
<proxy name="message-endpoint-proxy" startOnLoad="true" transports="http https"
    xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>
            <!-- Sends the message to the specified service -->
            <send>
                <endpoint>
                    <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
                </endpoint>
            </send>
        </inSequence>
        <outSequence>
            <respond/>
        </outSequence>
        <faultSequence/>
    </target>
</proxy>

...

Follow the below instructions to simulate this sample scenario.

Gliffy
nameMessage-Endpoint-Gliffy
pagePin2

Executing the sample

Send a request using a SOAP request client (such as SoapUI) to the ESB profile of WSO2 EI in the following manner:the following request to the ESB Profile using SOAP UI (or any other SOAP client).

Code Block
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.samples" xmlns:xsd="http://services.samples/xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getQuote>    
         <ser:request>          
            <xsd:symbol>foo</xsd:symbol>
         </ser:request>         
      </ser:getQuote>
   </soapenv:Body>
</soapenv:Envelope>

...

Image Added

Analysing the output

After sending the request to the ESB profile of WSO2 EI through the client, notice that the Stock Quote service has received will receive the inventory and logged the message.
samples.services.SimpleStockQuoteService :: Generating quote for : foo

...

log a message. The following output will be printed on the Axis2 server's Console, confirming that  the request is successfully received by the back-end service.

Image Added


You can view the response in the SOAP UI as follows. 

Image Added