Thursday, October 16, 2014

Get soap action using the Sequence - ESB



Get the  soap action using  get-property(‘Action’) expression and assign it to actionName property .This is done in proxy service and assigned actionName property accessed from the sequence’s  log mediator  .
<inSequence>
    <property xmlns:ns="http://org.apache.synapse/xsd"
                   name="actionName"
                   expression="get-property('Action')"/>
                                                                   ...
                                                                  
 </inSequence>              

Get assigned values from the sequence.
   <log level="custom" >
      <property name="p4_seq_mbb" value="****Get Action Name here****"></property>
      <property name="SURESH_TEST" expression="get-property('actionName')"></property>
   </log>