Advertisement
aadddrr

WSO22222

Jul 24th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.63 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <definitions xmlns="http://ws.apache.org/ns/synapse">
  3.    <proxy name="JLeafUserAuditProxy"
  4.          transports="https http"
  5.          startOnLoad="true"
  6.          trace="enable">
  7.       <target inSequence="JLeafUserAuditSequence"/>
  8.    </proxy>
  9.    <proxy name="JLeafAuthenticateProxy"
  10.          transports="https http"
  11.          startOnLoad="true"
  12.          trace="enable">
  13.       <target inSequence="JLeafAuthenticationSequence"/>
  14.    </proxy>
  15.    <proxy name="JLeafTaskProxy"
  16.          transports="https http"
  17.          startOnLoad="true"
  18.          trace="enable">
  19.       <target>
  20.          <inSequence>
  21.             <log level="custom">
  22.                <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY TaskProxy"/>
  23.             </log>
  24.             <log level="custom">
  25.                <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  26.             </log>
  27.             <log level="custom">
  28.                <property name="LOGGER : IP ADDRESS"
  29.                         expression="get-property('axis2','REMOTE_ADDR')"/>
  30.             </log>
  31.             <log level="custom">
  32.                <property name="LOGGER : USER AGENT"
  33.                         expression="get-property('transport','User-Agent')"/>
  34.             </log>
  35.             <log level="custom">
  36.                <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  37.             </log>
  38.             <log level="custom">
  39.                <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  40.             </log>
  41.             <property name="STATE" value="AUTHORIZATION" scope="default"/>
  42.             <sequence key="JLeafAuthorizationSequence"/>
  43.          </inSequence>
  44.          <outSequence>
  45.             <log level="custom">
  46.                <property name="LOGGER" value="OutSequence::BEGIN"/>
  47.                <property name="Body" expression="$body"/>
  48.             </log>
  49.             <switch source="get-property('STATE')">
  50.                <case regex="AUTHORIZATION">
  51.                   <log level="custom">
  52.                      <property name="LOGGER" value="AUTHORIZATION::BEGIN"/>
  53.                   </log>
  54.                   <filter xpath="//result/status='OK'">
  55.                      <then>
  56.                         <property name="STATE" value="TASK" scope="default"/>
  57.                         <sequence key="JLeafTaskSequence"/>
  58.                      </then>
  59.                      <else>
  60.                         <property name="STATE" value="DEFAULT" scope="default"/>
  61.                         <send/>
  62.                      </else>
  63.                   </filter>
  64.                   <log level="custom">
  65.                      <property name="LOGGER" value="AUTHORIZATION::END"/>
  66.                   </log>
  67.                </case>
  68.                <case regex="TASK">
  69.                   <log level="custom">
  70.                      <property name="LOGGER" value="TASK::BEGIN"/>
  71.                   </log>
  72.                   <property name="STATE" value="DEFAULT" scope="default"/>
  73.                   <property name="To" expression="//result/task" scope="default"/>
  74.                   <send/>
  75.                   <log level="custom">
  76.                      <property name="LOGGER" value="TASK::END"/>
  77.                   </log>
  78.                </case>
  79.                <default>
  80.                   <send/>
  81.                </default>
  82.             </switch>
  83.             <log level="custom">
  84.                <property name="LOGGER" value="OutSequence::END"/>
  85.             </log>
  86.          </outSequence>
  87.       </target>
  88.    </proxy>
  89.    <endpoint name="JLeafAuthorizationService">
  90.       <address uri="http://localhost:8082/axis2/services/AuthorizationService.AuthorizationServiceHttpEndpoint/execute"/>
  91.    </endpoint>
  92.    <sequence name="JLeafTaskSequence" trace="enable">
  93.       <log level="custom">
  94.          <property name="LOGGER" value="***** BEGIN TaskSequence *****"/>
  95.       </log>
  96.       <switch xmlns:ns="http://org.apache.synapse/xsd"
  97.              xmlns:ns3="http://org.apache.synapse/xsd"
  98.              source="//result/header/module">
  99.          <case regex="awe">
  100.             <log level="custom">
  101.                <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  102.             </log>
  103.             <send>
  104.                <endpoint key="JLeafApprovalTaskService"/>
  105.             </send>
  106.          </case>
  107.          <case regex="erpjleaf">
  108.             <log level="custom">
  109.                <property name="LOGGER" value="*** ERP JLEAF MASTER SERVICE ***"/>
  110.             </log>
  111.             <send>
  112.                <endpoint key="JLeafMasterTaskService"/>
  113.             </send>
  114.          </case>
  115.          <case regex="posintgrjleaf">
  116.             <log level="custom">
  117.                <property name="LOGGER" value="*** ERP JLEAF POS INTEGRATION SERVICE ***"/>
  118.             </log>
  119.             <send>
  120.                <endpoint key="JLeafPosIntgrJleafTaskService"/>
  121.             </send>
  122.          </case>
  123.          <case regex="erpjleafpurch">
  124.             <log level="custom">
  125.                <property name="LOGGER" value="*** ERP JLEAF PURCHASING SERVICE ***"/>
  126.             </log>
  127.             <send>
  128.                <endpoint key="JLeafPurchasingTaskService"/>
  129.             </send>
  130.          </case>
  131.          <case regex="erpjleafsales">
  132.             <log level="custom">
  133.                <property name="LOGGER" value="*** ERP JLEAF SALES SERVICE ***"/>
  134.             </log>
  135.             <send>
  136.                <endpoint key="JLeafSalesTaskService"/>
  137.             </send>
  138.          </case>
  139.          <case regex="erpjleafinv">
  140.             <log level="custom">
  141.                <property name="LOGGER" value="*** ERP JLEAF INV SERVICE ***"/>
  142.             </log>
  143.             <send>
  144.                <endpoint key="JLeafInventoryTaskService"/>
  145.             </send>
  146.          </case>
  147.          <case regex="erpjleafcb">
  148.             <log level="custom">
  149.                <property name="LOGGER" value="*** ERP JLEAF CASH BANK SERVICE ***"/>
  150.             </log>
  151.             <send>
  152.                <endpoint key="JLeafCashBankTaskService"/>
  153.             </send>
  154.          </case>
  155.          <case regex="erpjleaffin">
  156.             <log level="custom">
  157.                <property name="LOGGER" value="*** ERP JLEAF FINANCE SERVICE ***"/>
  158.             </log>
  159.             <send>
  160.                <endpoint key="JLeafFinanceTaskService"/>
  161.             </send>
  162.          </case>
  163.          <case regex="erpjleafgl">
  164.             <log level="custom">
  165.                <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  166.             </log>
  167.             <send>
  168.                <endpoint key="JLeafGeneralLedgerTaskService"/>
  169.             </send>
  170.          </case>
  171.          <case regex="erpjleafmlm">
  172.             <log level="custom">
  173.                <property name="LOGGER" value="*** ERP JLEAF MLM SERVICE ***"/>
  174.             </log>
  175.             <send>
  176.                <endpoint key="JLeafMlmTaskService"/>
  177.             </send>
  178.          </case>
  179.          <default>
  180.             <log level="custom">
  181.                <property name="LOGGER" value="*** COMMON SERVICE ***"/>
  182.             </log>
  183.             <send>
  184.                <endpoint key="JLeafTaskService"/>
  185.             </send>
  186.          </default>
  187.       </switch>
  188.       <log level="custom">
  189.          <property name="LOGGER" value="***** END TaskSequence *****"/>
  190.       </log>
  191.    </sequence>
  192.    <endpoint name="JLeafApprovalTaskService">
  193.       <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  194.    </endpoint>
  195.    <endpoint name="JLeafFinanceTaskService">
  196.       <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  197.    </endpoint>
  198.    <endpoint name="JLeafReportService">
  199.       <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  200.    </endpoint>
  201.    <endpoint name="JLeafGeneralLedgerTaskService">
  202.       <address uri="http://localhost:8082/axis2/services/GeneralLedgerTaskService.GeneralLedgerTaskServiceHttpEndpoint/execute"/>
  203.    </endpoint>
  204.    <endpoint name="JLeafAddUserAuditService">
  205.       <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  206.    </endpoint>
  207.    <endpoint name="JLeafSalesTaskService">
  208.       <address uri="http://localhost:8082/axis2/services/SalesTaskService.SalesTaskServiceHttpEndpoint/execute"/>
  209.    </endpoint>
  210.    <sequence name="JLeafAuthenticationSequence" trace="enable">
  211.       <log level="custom">
  212.          <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  213.       </log>
  214.       <log level="custom">
  215.          <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  216.       </log>
  217.       <log level="custom">
  218.          <property name="LOGGER : IP ADDRESS"
  219.                   expression="get-property('axis2','REMOTE_ADDR')"/>
  220.       </log>
  221.       <log level="custom">
  222.          <property name="LOGGER : USER AGENT"
  223.                   expression="get-property('transport','User-Agent')"/>
  224.       </log>
  225.       <log level="custom">
  226.          <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  227.       </log>
  228.       <log level="custom">
  229.          <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  230.       </log>
  231.       <log level="custom">
  232.          <property name="LOGGER" value="******** BEGIN AuthenticationSequence ********"/>
  233.       </log>
  234.       <send>
  235.          <endpoint key="JLeafAuthenticationService"/>
  236.       </send>
  237.       <log level="custom">
  238.          <property name="LOGGER" value="******** END AuthenticationSequence ********"/>
  239.       </log>
  240.    </sequence>
  241.    <endpoint name="JLeafPosIntgrJleafTaskService">
  242.       <address uri="http://localhost:8082/axis2/services/PosIntgrJleafTaskService.PosIntgrJleafTaskServiceHttpEndpoint/execute"/>
  243.    </endpoint>
  244.    <endpoint name="JLeafMasterTaskService">
  245.       <address uri="http://localhost:8082/axis2/services/MasterTaskService.MasterTaskServiceHttpEndpoint/execute"/>
  246.    </endpoint>
  247.    <endpoint name="JLeafAuthenticationService">
  248.       <address uri="http://localhost:8082/axis2/services/AuthenticationService.AuthenticationServiceHttpEndpoint/execute"/>
  249.    </endpoint>
  250.    <endpoint name="JLeafMlmTaskService">
  251.       <address uri="http://localhost:8082/axis2/services/MlmTaskService.MlmTaskServiceHttpEndpoint/execute"/>
  252.    </endpoint>
  253.    <endpoint name="JLeafCashBankTaskService">
  254.       <address uri="http://localhost:8082/axis2/services/CashBankTaskService.CashBankTaskServiceHttpEndpoint/execute"/>
  255.    </endpoint>
  256.    <endpoint name="JLeafPurchasingTaskService">
  257.       <address uri="http://localhost:8082/axis2/services/PurchasingTaskService.PurchasingTaskServiceHttpEndpoint/execute"/>
  258.    </endpoint>
  259.    <endpoint name="JLeafInventoryTaskService">
  260.       <address uri="http://localhost:8082/axis2/services/InventoryTaskService.InventoryTaskServiceHttpEndpoint/execute"/>
  261.    </endpoint>
  262.    <sequence name="JLeafAuthorizationSequence" trace="enable">
  263.       <log level="custom">
  264.          <property name="LOGGER" value="***** BEGIN AuthorizationSequence *****"/>
  265.       </log>
  266.       <send>
  267.          <endpoint key="JLeafAuthorizationService"/>
  268.       </send>
  269.       <log level="custom">
  270.          <property name="LOGGER" value="***** END AuthorizationSequence *****"/>
  271.       </log>
  272.    </sequence>
  273.    <endpoint name="JLeafTaskService">
  274.       <address uri="http://localhost:8082/axis2/services/TaskService.TaskServiceHttpEndpoint/execute"/>
  275.    </endpoint>
  276.    <sequence name="JLeafUserAuditSequence" trace="enable">
  277.       <log level="custom">
  278.          <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  279.       </log>
  280.       <log level="custom">
  281.          <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  282.       </log>
  283.       <log level="custom">
  284.          <property name="LOGGER : IP ADDRESS"
  285.                   expression="get-property('axis2','REMOTE_ADDR')"/>
  286.       </log>
  287.       <log level="custom">
  288.          <property name="LOGGER : USER AGENT"
  289.                   expression="get-property('transport','User-Agent')"/>
  290.       </log>
  291.       <log level="custom">
  292.          <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  293.       </log>
  294.       <log level="custom">
  295.          <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  296.       </log>
  297.       <log level="custom">
  298.          <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  299.       </log>
  300.       <send>
  301.          <endpoint key="JLeafAddUserAuditService"/>
  302.       </send>
  303.       <log level="custom">
  304.          <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  305.       </log>
  306.    </sequence>
  307. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement