Advertisement
widana

synapshet

Aug 14th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 19.32 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <definitions xmlns="http://ws.apache.org/ns/synapse">
  3.     <proxy name="UserAuditProxy" transports="https http" startOnLoad="true" trace="enable">
  4.         <target inSequence="UserAuditSequence"/>
  5.     </proxy>
  6.     <proxy name="JLeafAuthenticateProxy" transports="https http" startOnLoad="true" trace="enable">
  7.         <target inSequence="JLeafAuthenticationSequence"/>
  8.     </proxy>
  9.     <proxy name="JLeafNewAuthenticateProxy" transports="https http" startOnLoad="true" trace="enable">
  10.         <target inSequence="JLeafNewAuthenticationSequence"/>
  11.     </proxy>
  12.     <proxy name="JLeafTaskProxy" transports="https http" startOnLoad="true" trace="enable">
  13.         <target>
  14.             <inSequence>
  15.                 <log level="custom">
  16.                     <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY TaskProxy"/>
  17.                 </log>
  18.                 <log level="custom">
  19.                     <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  20.                 </log>
  21.                 <log level="custom">
  22.                     <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  23.                 </log>
  24.                 <log level="custom">
  25.                     <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  26.                 </log>
  27.                 <log level="custom">
  28.                     <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  29.                 </log>
  30.                 <log level="custom">
  31.                     <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  32.                 </log>
  33.                 <sequence key="JLeafAuthorizationSequence"/>
  34.                 <property name="STATE" value="AUTHORIZATION" scope="default"/>
  35.             </inSequence>
  36.             <outSequence>
  37.                 <log level="custom">
  38.                     <property name="LOGGER" value="OutSequence::BEGIN"/>
  39.                     <property name="Body" expression="$body"/>
  40.                 </log>
  41.                 <switch source="get-property('STATE')">
  42.                     <case regex="AUTHORIZATION">
  43.                         <log level="custom">
  44.                             <property name="LOGGER" value="AUTHORIZATION::BEGIN"/>
  45.                         </log>
  46.                         <filter xpath="//result/status='OK'">
  47.                             <then>
  48.                                 <property name="STATE" value="TASK" scope="default"/>
  49.                                 <sequence key="JLeafTaskSequence"/>
  50.                             </then>
  51.                             <else>
  52.                                 <property name="STATE" value="DEFAULT" scope="default"/>
  53.                                 <send/>
  54.                             </else>
  55.                         </filter>
  56.                         <log level="custom">
  57.                             <property name="LOGGER" value="AUTHORIZATION::END"/>
  58.                         </log>
  59.                     </case>
  60.                     <case regex="TASK">
  61.                         <log level="custom">
  62.                             <property name="LOGGER" value="TASK::BEGIN"/>
  63.                         </log>
  64.                         <property name="STATE" value="DEFAULT" scope="default"/>
  65.                         <property name="To" expression="//result/task" scope="default"/>
  66.                         <send/>
  67.                         <log level="custom">
  68.                             <property name="LOGGER" value="TASK::END"/>
  69.                         </log>
  70.                     </case>
  71.                     <default>
  72.                         <send/>
  73.                     </default>
  74.                 </switch>
  75.                 <log level="custom">
  76.                     <property name="LOGGER" value="OutSequence::END"/>
  77.                 </log>
  78.             </outSequence>
  79.         </target>
  80.     </proxy>
  81.     <proxy name="JLeafUserAuditProxy" transports="https http" startOnLoad="true" trace="enable">
  82.         <target inSequence="JLeafUserAuditSequence"/>
  83.     </proxy>
  84.     <endpoint name="JLeafCashBankTaskService">
  85.         <address uri="http://localhost:8082/axis2/services/CashBankTaskService.CashBankTaskServiceHttpEndpoint/execute"/>
  86.     </endpoint>
  87.     <endpoint name="JLeafSalesTaskService">
  88.         <address uri="http://localhost:8082/axis2/services/SalesTaskService.SalesTaskServiceHttpEndpoint/execute"/>
  89.     </endpoint>
  90.     <endpoint name="PosIntgrJleafTaskService">
  91.         <address uri="http://localhost:8082/axis2/services/PosIntgrJleafTaskService.PosIntgrJleafTaskServiceHttpEndpoint/execute"/>
  92.     </endpoint>
  93.     <sequence name="JLeafTaskSequence" trace="enable">
  94.         <log level="custom">
  95.             <property name="LOGGER" value="***** BEGIN TaskSequence *****"/>
  96.         </log>
  97.         <switch xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" source="//result/header/module">
  98.             <case regex="erpjleaf">
  99.                 <log level="custom">
  100.                     <property name="LOGGER" value="*** ERP JLEAF MASTER SERVICE ***"/>
  101.                 </log>
  102.                 <send>
  103.                     <endpoint key="JLeafMasterTaskService"/>
  104.                 </send>
  105.             </case>
  106.             <case regex="rmajleaf">
  107.                 <log level="custom">
  108.                     <property name="LOGGER" value="*** RMA JLEAF INTEGRATION SERVICE ***"/>
  109.                 </log>
  110.                 <send>
  111.                     <endpoint key="JLeafRmaTaskService"/>
  112.                 </send>
  113.             </case>
  114.             <case regex="wms">
  115.                 <log level="custom">
  116.                     <property name="LOGGER" value="*** WMS JLEAF INTEGRATION SERVICE ***"/>
  117.                 </log>
  118.                 <send>
  119.                     <endpoint key="JLeafWmsTaskService"/>
  120.                 </send>
  121.             </case>
  122.             <case regex="posintgrjleaf">
  123.                 <log level="custom">
  124.                     <property name="LOGGER" value="*** ERP JLEAF POS INTEGRATION SERVICE ***"/>
  125.                 </log>
  126.                 <send>
  127.                     <endpoint key="JLeafPosIntgrJleafTaskService"/>
  128.                 </send>
  129.             </case>
  130.             <case regex="erpjleafpurch">
  131.                 <log level="custom">
  132.                     <property name="LOGGER" value="*** ERP JLEAF PURCHASING SERVICE ***"/>
  133.                 </log>
  134.                 <send>
  135.                     <endpoint key="JLeafPurchasingTaskService"/>
  136.                 </send>
  137.             </case>
  138.             <case regex="erpjleafsales">
  139.                 <log level="custom">
  140.                     <property name="LOGGER" value="*** ERP JLEAF SALES SERVICE ***"/>
  141.                 </log>
  142.                 <send>
  143.                     <endpoint key="JLeafSalesTaskService"/>
  144.                 </send>
  145.             </case>
  146.             <case regex="erpjleafcb">
  147.                 <log level="custom">
  148.                     <property name="LOGGER" value="*** ERP JLEAF CASHBANK SERVICE ***"/>
  149.                 </log>
  150.                 <send>
  151.                     <endpoint key="JLeafCashBankTaskService"/>
  152.                 </send>
  153.             </case>
  154.             <case regex="erpjleafinv">
  155.                 <log level="custom">
  156.                     <property name="LOGGER" value="*** ERP JLEAF INV SERVICE ***"/>
  157.                 </log>
  158.                 <send>
  159.                     <endpoint key="JLeafInventoryTaskService"/>
  160.                 </send>
  161.             </case>
  162.             <case regex="erpjleafgl">
  163.                 <log level="custom">
  164.                     <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  165.                 </log>
  166.                 <send>
  167.                     <endpoint key="JLeafGlTaskService"/>
  168.                 </send>
  169.             </case>
  170.             <case regex="erpjleaflog">
  171.                 <log level="custom">
  172.                     <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  173.                 </log>
  174.                 <send>
  175.                     <endpoint key="JLeafLogisticTaskService"/>
  176.                 </send>
  177.             </case>
  178.             <case regex="awe">
  179.                 <log level="custom">
  180.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  181.                 </log>
  182.                 <send>
  183.                     <endpoint key="JLeafApprovalTaskService"/>
  184.                 </send>
  185.             </case>
  186.             <case regex="erpjleaffin">
  187.                 <log level="custom">
  188.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  189.                 </log>
  190.                 <send>
  191.                     <endpoint key="JLeafFinanceTaskService"/>
  192.                 </send>
  193.             </case>
  194.             <case regex="erpjleafgl">
  195.                 <log level="custom">
  196.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  197.                 </log>
  198.                 <send>
  199.                     <endpoint key="JLeafGlTaskService"/>
  200.                 </send>
  201.             </case>
  202.             <case regex="erpjleafmagento">
  203.                 <log level="custom">
  204.                     <property name="LOGGER" value="*** MAGENTO SERVICE ***"/>
  205.                 </log>
  206.                 <send>
  207.                     <endpoint key="JLeafMagentoTaskService"/>
  208.                 </send>
  209.             </case>
  210.             <default>
  211.                 <log level="custom">
  212.                     <property name="LOGGER" value="*** COMMON SERVICE ***"/>
  213.                 </log>
  214.                 <send>
  215.                     <endpoint key="JLeafTaskService"/>
  216.                 </send>
  217.             </default>
  218.         </switch>
  219.         <log level="custom">
  220.             <property name="LOGGER" value="***** END TaskSequence *****"/>
  221.         </log>
  222.     </sequence>
  223.     <sequence name="main">
  224.         <log/>
  225.         <drop/>
  226.     </sequence>
  227.     <endpoint name="JLeafFinanceTaskService">
  228.         <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  229.     </endpoint>
  230.     <endpoint name="JLeafGlTaskService">
  231.         <address uri="http://localhost:8082/axis2/services/GeneralLedgerTaskService.GeneralLedgerTaskServiceHttpEndpoint/execute"/>
  232.     </endpoint>
  233.     <endpoint name="JLeafNewAuthService">
  234.         <address uri="http://localhost:8082/axis2/services/NewAuthenticationService.NewAuthenticationServiceHttpEndpoint/execute"/>
  235.     </endpoint>
  236.     <endpoint name="JLeafAddUserAuditService">
  237.         <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  238.     </endpoint>
  239.     <endpoint name="JLeafAuthenticationService">
  240.         <address uri="http://localhost:8082/axis2/services/AuthenticationService.AuthenticationServiceHttpEndpoint/execute"/>
  241.     </endpoint>
  242.     <endpoint name="ReportService">
  243.         <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  244.     </endpoint>
  245.     <sequence name="JLeafAuthorizationSequence" trace="enable">
  246.         <log level="custom">
  247.             <property name="LOGGER" value="***** BEGIN AuthorizationSequence *****"/>
  248.         </log>
  249.         <send>
  250.             <endpoint key="JLeafAuthorizationService"/>
  251.         </send>
  252.         <log level="custom">
  253.             <property name="LOGGER" value="***** END AuthorizationSequence *****"/>
  254.         </log>
  255.     </sequence>
  256.     <endpoint name="JLeafPurchasingTaskService">
  257.         <address uri="http://localhost:8082/axis2/services/PurchasingTaskService.PurchasingTaskServiceHttpEndpoint/execute"/>
  258.     </endpoint>
  259.     <endpoint name="JLeafTaskService">
  260.         <address uri="http://localhost:8082/axis2/services/TaskService.TaskServiceHttpEndpoint/execute"/>
  261.     </endpoint>
  262.     <sequence name="UserAuditSequence" trace="enable">
  263.         <log level="custom">
  264.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  265.         </log>
  266.         <log level="custom">
  267.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  268.         </log>
  269.         <log level="custom">
  270.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  271.         </log>
  272.         <log level="custom">
  273.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  274.         </log>
  275.         <log level="custom">
  276.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  277.         </log>
  278.         <log level="custom">
  279.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  280.         </log>
  281.         <log level="custom">
  282.             <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  283.         </log>
  284.         <send>
  285.             <endpoint key="AddUserAuditService"/>
  286.         </send>
  287.         <log level="custom">
  288.             <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  289.         </log>
  290.     </sequence>
  291.     <endpoint name="ApprovalTaskService">
  292.         <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  293.     </endpoint>
  294.     <endpoint name="AddUserAuditService">
  295.         <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  296.     </endpoint>
  297.     <endpoint name="JLeafPosIntgrJleafTaskService">
  298.         <address uri="http://localhost:8082/axis2/services/PosIntgrJleafTaskService.PosIntgrJleafTaskServiceHttpEndpoint/execute"/>
  299.     </endpoint>
  300.     <sequence name="JLeafNewAuthenticationSequence" trace="enable">
  301.         <log level="custom">
  302.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  303.         </log>
  304.         <log level="custom">
  305.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  306.         </log>
  307.         <log level="custom">
  308.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  309.         </log>
  310.         <log level="custom">
  311.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  312.         </log>
  313.         <log level="custom">
  314.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  315.         </log>
  316.         <log level="custom">
  317.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  318.         </log>
  319.         <log level="custom">
  320.             <property name="LOGGER" value="******** BEGIN NewAuthenticationSequence ********"/>
  321.         </log>
  322.         <send>
  323.             <endpoint key="JLeafNewAuthService"/>
  324.         </send>
  325.         <log level="custom">
  326.             <property name="LOGGER" value="******** END NewAuthenticationSequence ********"/>
  327.         </log>
  328.     </sequence>
  329.     <endpoint name="JLeafWmsTaskService">
  330.         <address uri="http://localhost:8082/axis2/services/WmsTaskService.WmsTaskServiceHttpEndpoint/execute"/>
  331.     </endpoint>
  332.     <sequence name="JLeafAuthenticationSequence" trace="enable">
  333.         <log level="custom">
  334.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  335.         </log>
  336.         <log level="custom">
  337.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  338.         </log>
  339.         <log level="custom">
  340.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  341.         </log>
  342.         <log level="custom">
  343.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  344.         </log>
  345.         <log level="custom">
  346.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  347.         </log>
  348.         <log level="custom">
  349.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  350.         </log>
  351.         <log level="custom">
  352.             <property name="LOGGER" value="******** BEGIN AuthenticationSequence ********"/>
  353.         </log>
  354.         <send>
  355.             <endpoint key="JLeafAuthenticationService"/>
  356.         </send>
  357.         <log level="custom">
  358.             <property name="LOGGER" value="******** END AuthenticationSequence ********"/>
  359.         </log>
  360.     </sequence>
  361.     <sequence name="JLeafUserAuditSequence" trace="enable">
  362.         <log level="custom">
  363.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  364.         </log>
  365.         <log level="custom">
  366.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  367.         </log>
  368.         <log level="custom">
  369.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  370.         </log>
  371.         <log level="custom">
  372.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  373.         </log>
  374.         <log level="custom">
  375.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  376.         </log>
  377.         <log level="custom">
  378.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  379.         </log>
  380.         <log level="custom">
  381.             <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  382.         </log>
  383.         <send>
  384.             <endpoint key="JLeafAddUserAuditService"/>
  385.         </send>
  386.         <log level="custom">
  387.             <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  388.         </log>
  389.     </sequence>
  390.     <endpoint name="JLeafLogisticTaskService">
  391.         <address uri="http://localhost:8082/axis2/services/LogisticTaskService.LogisticTaskServiceHttpEndpoint/execute"/>
  392.     </endpoint>
  393.     <endpoint name="JLeafApprovalTaskService">
  394.         <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  395.     </endpoint>
  396.     <endpoint name="JLeafMagentoTaskService">
  397.         <address uri="http://localhost:8082/axis2/services/MagentoIntgrTaskService.MagentoIntgrTaskServiceHttpEndpoint/execute"/>
  398.     </endpoint>
  399.     <endpoint name="TaskService">
  400.         <address uri="http://localhost:8082/axis2/services/TaskService.TaskServiceHttpEndpoint/execute"/>
  401.     </endpoint>
  402.     <endpoint name="MlmTaskService">
  403.         <address uri="http://localhost:8082/axis2/services/MlmTaskService.MlmTaskServiceHttpEndpoint/execute"/>
  404.     </endpoint>
  405.     <endpoint name="JLeafReportService">
  406.         <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  407.     </endpoint>
  408.     <endpoint name="JLeafMasterTaskService">
  409.         <address uri="http://localhost:8082/axis2/services/MasterTaskService.MasterTaskServiceHttpEndpoint/execute"/>
  410.     </endpoint>
  411.     <endpoint name="FinanceTaskService">
  412.         <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  413.     </endpoint>
  414.     <endpoint name="JLeafInventoryTaskService">
  415.         <address uri="http://localhost:8082/axis2/services/InventoryTaskService.InventoryTaskServiceHttpEndpoint/execute"/>
  416.     </endpoint>
  417.     <endpoint name="JLeafAuthorizationService">
  418.         <address uri="http://localhost:8082/axis2/services/AuthorizationService.AuthorizationServiceHttpEndpoint/execute"/>
  419.     </endpoint>
  420.     <endpoint name="JLeafRmaTaskService">
  421.         <address uri="http://localhost:8082/axis2/services/RmaTaskService.RmaTaskServiceHttpEndpoint/execute"/>
  422.     </endpoint>
  423. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement