Can Sonic Connect Client contact a different URL per Message

Posted by kasch65 on 16-Feb-2012 04:38

Is there a way using the Sonic Connect SOAP client to invoke different server URLs that are configured per message?

Normally the adress is configured statically in the properties file. That is not applicable for our application as destinations vary from message to message. Also prior unknown URLs ma be required.

All servers will provide the same WS interface.

All Replies

Posted by wtam on 16-Feb-2012 16:06

Yes.  You need Sonic ESB 8.0.0.1 (Hot Fix) or later.

   Sonic Connect now allows the destination URL for a web service invocation step to be overridden using a
   request mapping rule.
  
   NOTE: Existing Sonic Connect web service clients will need to be re-created in Sonic Workbench to enable
   this behavior.
  
   To override the destination URL at a Sonic Connect step, create a new request mapping rule as follows:
     i.   In the ESB Process Editor, open the Request Mapping tab of the Sonic Connect invocation step.
     ii.  On the right-hand side of the Message Mapping section, right-click the "Custom" target
          and select "Add New ..."
     iii. In the expression field, enter the following:
            #{esbp.params['Override.Destination_URL']}
     iv.  Click "OK" to save the custom expression.
     v. On the left-hand side of the Message Mapping section, define the source of the destination URL. Map it
        to the custom expression target that was just created. Any source may be used - refer to the Workbench
        User Guide for details on defining a message mapping rule.

This thread is closed