All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
linenumberstrue
<?xml<definitions versionxmlns="1.0" encoding="UTF-8"?>
<definitions xmlnshttp://ws.apache.org/ns/synapse">
   <sequence name="errorHandler">
      <makefault response="true">
         <code xmlns:tns="http://wswww.apachew3.org/ns/synapse">
    <!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or http://) -->
    <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
        <!-- the root property of the simple URL registry helps resolve a resource URL as root + key -->
        <parameter name=<ESB_Home>/repository/samples/resources/></parameter>
        <!-- all resources loaded from the URL registry would be cached for this number of milli seconds -->
        <parameter name="cachableDuration">15000</parameter>
    </registry>
   2003/05/soap-envelope" value="tns:Receiver" />
         <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER." />
      </makefault>
      <send />
   </sequence>
   <sequence name="fault">
      <log level="full">
         <property name="MESSAGE" value="Executing default &quot;fault&quot; sequence" />
         <property name="ERROR_CODE" expression="get-property('ERROR_CODE')" />
         <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')" />
      </log>
      <drop />
   </sequence>
   <sequence name="main" onError="errorHandler">
             <in>
           
         <property name="EP_LIST" value="http://localhost:9001/services/SimpleStockQuoteService,http://localhost:9002/services/SimpleStockQuoteService,http://localhost:9003/services/SimpleStockQuoteService"/>	
         <property name="OUT_ONLY" value="true" />
                    <property name="FORCE_SC_ACCEPTED" scopevalue="axis2true" valuescope="trueaxis2" />
           <!--Dynamic Reclipient List-->             <send>
                <endpoint>
                    <recipientlist>
                       
            <endpoint>
               <recipientlist>
                  <endpoints value="{get-property('EP_LIST')}" max-cache="20" />
                   
               </recipientlist>
                   </endpoint>             </send>             <drop/>         </in>     </sequence>endpoint>
     <sequence name="errorHandler">         <makefault response="true">             <code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver"/>
            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
        </makefault>
        <send/>
    </send>
         <drop/>
      </in>
   </sequence>
</definitions>

...