Advertisement
aadddrr

SEtting wso2 lokal 20170619

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