Monday, July 08, 2013

Simple Proxy Configuration to test the functionalities of ESB mediators

To test how ESB mediation works or to observe the functionalities of various mediators you may probably need to set up a ESB and let your messages to pass through by ESB. And then observe the input and output. Typical scenario would be client --> ESB --> server configuration. but if you want only to observe the functionalities of components in easy way here's the trick.

Following configuration can be used to sends the message backs to the client


   
      
         
         


How it works


Here we remove the To header from SOAP envelop.

When this property is set to 'true' on a message, the ESB will start treating it as a response message. It is generally used to route a request message back to its source as the response.

Therefore with above configuration, it will send response to client directly from inSequence. i.e it loop backs the message to the client. If you add your esb mediation/modifications within "!-- your esb modifications here --" you can simply observe the difference of message you send and received.