This section explains, through an example scenario, how the Messaging Gateway EIP can be implemented using WSO2 ESB. The following topics are covered: Table of Contents
...
Simulating the sample scenario
If you navigate to http://localhost:9000/services/SimpleStockQuoteService
, you can see the WSDL file of the back-end server. There are five methods exposed to the outside, but the Proxy Service SimpleQuoteProxy
exposes only four to the outside. It filters out the getFullQuote
method. See the SimpleQuoteProxy
WSDL file in http://localhost:8280/services/StockQuoteProxy?wsdl
.
Send the following request using a client like SOAP UI to the SimpleQuoteProxy
service.
...
Now, change the publish WSDL file as follows and send the same SOAP message to the server again.
...
...
<publishWSDL
...
uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
...
...
Note that you get the correct response from the server since the new WSDL of the proxy service is the same as the back-end service.
...