sequence - wso2 : ESB faultsequence -


how use faultsequence of proxy in esb

i want use faultsequence when occur fault in endpoint. example stop service1 using jconsole , want route message service2 when call proxy service. when call proxy using soapui show fault message : the system attempting access inactive service..

<target>   <insequence >      <send>         <endpoint name="cal" >               <address uri="http://localhost:9763/services/service1/"/>            </endpoint>      </send>   </insequence>   <faultsequence>      <log level="custom">         <property name="text" value="an unexpected error occured service"/>         <property name="message" expression="get-property('error_message')"/>     </log>      <send>         <endpoint>            <address uri="http://localhost:9763/services/service2/"/>         </endpoint>      </send>   </faultsequence> 

please guide me!

when endpoint 1 inactive returns soap fault , want go fault sequence. @ moment fault sequence considered response , sent client (soap ui).

in wso2 esb 4.5.0 onwards, there new property force_error_on_soap_fault added. setting property, soap faults directed fault sequence. can next logics when in fault sequence (for example invoking sequence).

refer [1] sample proxy service.

[1] http://maharachchi.blogspot.com/2012/09/now-you-can-send-soapfaults-to-fault.html


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -