xpath - WSO2 ESB- Error Handling - On Error Sequence -


for mediators onerror sequence works?

ex: tried enrich mediator didn't work , send mediator worked.

<insequence onerror="errorhandler" xmlns="http://ws.apache.org/ns/synapse"> <enrich>     <source clone="true" type="custom" xpath="//body/xs"/>     <target action="replace" property="origreques" type="property"/> </enrich> 

here given xpath wrong. in wso2carbon.log got below message.

error {org.apache.synapse.mediators.elementary.enrichmediator} - specified node xpath cannot found. {org.apache.synapse.mediators.elementary.enrichmediator}


<api xmlns="http://ws.apache.org/ns/synapse" name="addtripservice" context="/trip" hostname="localhost" port="8280"> <resource methods="post" uri-template="/add/v2" faultsequence="fault">   <insequence onerror="errorhandler">      <enrich>         <source clone="true" xpath="//body/xs"/>         <target type="property" property="origreques"/>      </enrich>      <send/>   </insequence> 

here getting error message whatever have given in errorhandler sequence.

this means onerror sequence works send mediator , not enrich mediator. please let me know mediators works?

thanks in advance.

this [1] article contains detailed description error handling in wso2 esb. go through , understand how mediators works , how handle errors properly.

[1] http://wso2.com/library/articles/2012/10/wso2-esb-examples-best-practises-error-handling-wso2-esb/


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -