[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
176 lines
11 KiB
XML
176 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
|
|
|
<!-- General Interfaces -->
|
|
<service name="oagisMessageIdOutInterface" engine="interface">
|
|
<attribute name="logicalId" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="component" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="task" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="referenceId" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
<!-- Low Level CrUD Services -->
|
|
<service name="createOagisMessageInfo" engine="simple" default-entity-name="OagisMessageInfo" require-new-transaction="true"
|
|
location="component://oagis/script/org/ofbiz/oagis/OagisMessageServices.xml" invoke="createOagisMessageInfo" auth="true">
|
|
<description>Create MessageInfo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="updateOagisMessageInfo" engine="simple" default-entity-name="OagisMessageInfo" require-new-transaction="true"
|
|
location="component://oagis/script/org/ofbiz/oagis/OagisMessageServices.xml" invoke="updateOagisMessageInfo" auth="true">
|
|
<description>Update MessageInfo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="createOagisMessageErrorInfo" engine="simple" default-entity-name="OagisMessageErrorInfo"
|
|
location="component://oagis/script/org/ofbiz/oagis/OagisMessageServices.xml" invoke="createOagisMessageErrorInfo" auth="true">
|
|
<description>Create MessageErrorInfo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
<override name="errorSeqId" optional="true"/>
|
|
</service>
|
|
<service name="updateOagisMessageErrorInfo" engine="simple" default-entity-name="OagisMessageErrorInfo"
|
|
location="component://oagis/script/org/ofbiz/oagis/OagisMessageServices.xml" invoke="updateOagisMessageErrorInfo" auth="true">
|
|
<description>Update MessageErrorInfo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
|
|
<service name="createOagisMsgErrInfosFromErrMapList" engine="simple"
|
|
location="component://oagis/script/org/ofbiz/oagis/OagisMessageServices.xml" invoke="createOagisMsgErrInfosFromErrMapList" auth="true">
|
|
<description>Create MessageErrorInfo From Error Map List</description>
|
|
<auto-attributes entity-name="OagisMessageInfo" mode="IN" include="pk" optional="false"/>
|
|
<attribute type="List" mode="IN" name="errorMapList" optional="true"/>
|
|
</service>
|
|
|
|
<!-- Routing service to handle all incoming messages and send them to the appropriate processing service -->
|
|
<service name="oagisMessageHandler" engine="java" transaction-timeout="300"
|
|
location="org.ofbiz.oagis.OagisServices" invoke="oagisMessageHandler" auth="false">
|
|
<implements service="serviceStreamInterface"/>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="isErrorRetry" type="Boolean" mode="IN" optional="true"/>
|
|
<override name="outputStream" optional="true"/>
|
|
</service>
|
|
|
|
<service name="oagisReReceiveMessage" engine="java" transaction-timeout="300"
|
|
location="org.ofbiz.oagis.OagisServices" invoke="oagisReReceiveMessage" auth="false">
|
|
<attribute name="logicalId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="component" type="String" mode="IN" optional="true"/>
|
|
<attribute name="task" type="String" mode="IN" optional="true"/>
|
|
<attribute name="referenceId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- Confirm BOD Messages, general flow and error handling -->
|
|
<service name="oagisSendConfirmBod" engine="java" transaction-timeout="300" max-retry="3"
|
|
location="org.ofbiz.oagis.OagisServices" invoke="oagisSendConfirmBod" auth="true">
|
|
<description>Send ConfirmBod</description>
|
|
<attribute name="sendToUrl" type="String" mode="IN" optional="true"/>
|
|
<attribute name="saveToFilename" type="String" mode="IN" optional="true"/>
|
|
<attribute name="saveToDirectory" type="String" mode="IN" optional="true"/>
|
|
<attribute name="outputStream" type="java.io.OutputStream" mode="IN" optional="true"/>
|
|
<attribute name="logicalId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="component" type="String" mode="IN" optional="false"/>
|
|
<attribute name="task" type="String" mode="IN" optional="false"/>
|
|
<attribute name="referenceId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="errorMapList" type="java.util.List" mode="IN" optional="true"/>
|
|
<attribute name="origRefId" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="oagisReceiveConfirmBod" engine="java" transaction-timeout="300"
|
|
location="org.ofbiz.oagis.OagisServices" invoke="oagisReceiveConfirmBod" auth="true">
|
|
<description>Process incoming ConfirmBod</description>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="document" type="org.w3c.dom.Document" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- ==================================== -->
|
|
<!-- Outgoing Message Services -->
|
|
<service name="oagisSendProcessShipment" max-retry="0" engine="java"
|
|
location="org.ofbiz.oagis.OagisShipmentServices" invoke="oagisSendProcessShipment">
|
|
<description>Prepare and Optionally Send OAGIS Process Shipment Message.
|
|
Note on usage: you can pass in either sendToUrl, saveToFilename, or outputStream.
|
|
If none are passed in the URL in oagis.properties will be used at the target for the message.</description>
|
|
<attribute name="sendToUrl" type="String" mode="IN" optional="true"/>
|
|
<attribute name="saveToFilename" type="String" mode="IN" optional="true"/>
|
|
<attribute name="saveToDirectory" type="String" mode="IN" optional="true"/>
|
|
<attribute name="outputStream" type="java.io.OutputStream" mode="IN" optional="true"/>
|
|
<attribute name="orderId" mode="IN" type="String" optional="false"/>
|
|
</service>
|
|
<service name="oagisSendProcessShipmentsFromBackOrderSet" engine="java"
|
|
location="org.ofbiz.oagis.OagisShipmentServices" invoke="oagisSendProcessShipmentsFromBackOrderSet">
|
|
<attribute name="noLongerOnBackOrderIdSet" type="Set" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<service name="oagisSendReceiveDelivery" max-retry="0" engine="java"
|
|
location="org.ofbiz.oagis.OagisShipmentServices" invoke="oagisSendReceiveDelivery">
|
|
<description>Prepare and Send Receive Delivery</description>
|
|
<attribute name="sendToUrl" type="String" mode="IN" optional="true"/>
|
|
<attribute name="saveToFilename" type="String" mode="IN" optional="true"/>
|
|
<attribute name="saveToDirectory" type="String" mode="IN" optional="true"/>
|
|
<attribute name="outputStream" type="java.io.OutputStream" mode="IN" optional="true"/>
|
|
<attribute name="returnId" mode="IN" type="String" optional="false"/>
|
|
</service>
|
|
|
|
<!-- ==================================== -->
|
|
<!-- Incoming Message Services -->
|
|
<service name="oagisReceiveSyncInventory" engine="java" transaction-timeout="300" max-retry="3"
|
|
location="org.ofbiz.oagis.OagisInventoryServices" invoke="oagisReceiveSyncInventory" auth="true">
|
|
<description>Process incoming Inventory Sync message</description>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="document" type="org.w3c.dom.Document" mode="IN" optional="false"/>
|
|
<attribute name="isErrorRetry" type="Boolean" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- DEJ20070808 added max-rety=3 because this is run async persisted just in case there is a transaction problem under heavy load -->
|
|
<service name="oagisReceiveShowShipment" engine="java" transaction-timeout="300" max-retry="3"
|
|
location="org.ofbiz.oagis.OagisShipmentServices" invoke="oagisReceiveShowShipment" auth="true">
|
|
<description>Process incoming Show Shipment message</description>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="document" type="org.w3c.dom.Document" mode="IN" optional="false"/>
|
|
<attribute name="isErrorRetry" type="Boolean" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<service name="oagisReceiveAcknowledgeDeliveryPo" engine="java" transaction-timeout="300" max-retry="3"
|
|
location="org.ofbiz.oagis.OagisInventoryServices" invoke="oagisReceiveAcknowledgeDeliveryPo" auth="true">
|
|
<description>Process Acknowledge Delivery for PO message</description>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="document" type="org.w3c.dom.Document" mode="IN" optional="false"/>
|
|
<attribute name="isErrorRetry" type="Boolean" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="oagisReceiveAcknowledgeDeliveryRma" engine="java" transaction-timeout="300" max-retry="3"
|
|
location="org.ofbiz.oagis.OagisInventoryServices" invoke="oagisReceiveAcknowledgeDeliveryRma" auth="true">
|
|
<description>Process Acknowledge Delivery for RMA message</description>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="document" type="org.w3c.dom.Document" mode="IN" optional="false"/>
|
|
<attribute name="isErrorRetry" type="Boolean" mode="IN" optional="true"/>
|
|
<attribute name="inventoryItemIdList" type="List" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="oagisReceiveAcknowledgeDeliveryStatus" engine="java" transaction-timeout="300" max-retry="3"
|
|
location="org.ofbiz.oagis.OagisInventoryServices" invoke="oagisReceiveAcknowledgeDeliveryStatus" auth="true">
|
|
<description>Process Acknowledge Delivery for Status message</description>
|
|
<implements service="oagisMessageIdOutInterface"/>
|
|
<attribute name="document" type="org.w3c.dom.Document" mode="IN" optional="false"/>
|
|
<attribute name="isErrorRetry" type="Boolean" mode="IN" optional="true"/>
|
|
<attribute name="inventoryItemIdList" type="List" mode="OUT" optional="true"/>
|
|
</service>
|
|
</services>
|