Advertisement
aadddrr

SETTING WSO2 XCOM

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