git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892712 13f79535-47bb-0310-9956-ffa450edef68
214 lines
11 KiB
XML
214 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">
|
|
<description>OFBIZ Test Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<service name="testScv" engine="java" export="true" validate="false" require-new-transaction="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="testService">
|
|
<description>Test service</description>
|
|
<attribute name="defaultValue" type="Double" mode="IN" default-value="999.9999"/>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="resp" type="String" mode="OUT"/>
|
|
</service>
|
|
<service name="testSOAPScv" engine="java" export="true" validate="false" require-new-transaction="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="testSOAPService">
|
|
<description>Test SOAP service</description>
|
|
<attribute name="productCategory" type="org.ofbiz.entity.GenericValue" mode="IN" optional="false"/>
|
|
<attribute name="products" type="List" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="blockingTestScv" engine="java" export="true" validate="false" require-new-transaction="true" transaction-timeout="20"
|
|
location="org.ofbiz.common.CommonServices" invoke="blockingTestService">
|
|
<description>Blocking Test service</description>
|
|
<attribute name="duration" mode="IN" type="Long" optional="true"/>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="resp" type="String" mode="OUT"/>
|
|
</service>
|
|
<service name="testError" engine="java" export="true" validate="false" require-new-transaction="true" max-retry="1"
|
|
location="org.ofbiz.common.CommonServices" invoke="returnErrorService">
|
|
</service>
|
|
<!-- see serviceengine.xml to configure the rmi location alias -->
|
|
<service name="testRmi" engine="rmi" validate="false"
|
|
location="main-rmi" invoke="testScv">
|
|
<implements service="testScv"/>
|
|
</service>
|
|
<service name="testRmiFail" engine="rmi" validate="false"
|
|
location="main-rmi" invoke="testBsh">
|
|
<implements service="testScv"/>
|
|
</service>
|
|
|
|
<service name="testWorkflow" engine="workflow" location="TEST-PKG" invoke="TestWorkflow">
|
|
<attribute name="orderId" type="String" mode="IN"/>
|
|
<attribute name="partyId" type="String" mode="IN"/>
|
|
<attribute name="orderStatusId" type="String" mode="OUT"/>
|
|
</service>
|
|
<service name="testWorkflowCondition" engine="java"
|
|
location="org.ofbiz.common.CommonServices" invoke="testWorkflowCondition">
|
|
<attribute name="serviceName" type="String" mode="IN" optional="true"/>
|
|
<attribute name="evaluationResult" type="Boolean" mode="OUT"/>
|
|
</service>
|
|
<service name="testRollback" engine="java" export="true" validate="false"
|
|
location="org.ofbiz.common.CommonServices" invoke="testRollbackListener">
|
|
<description>Test service</description>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="resp" type="String" mode="OUT"/>
|
|
</service>
|
|
<service name="testCommit" engine="java" export="true" validate="false"
|
|
location="org.ofbiz.common.CommonServices" invoke="testCommitListener">
|
|
<description>Test service</description>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="resp" type="String" mode="OUT"/>
|
|
</service>
|
|
|
|
<service name="groupTest" engine="group" location="testGroup" invoke=""/>
|
|
|
|
<service name="testHttp" engine="http"
|
|
location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
|
|
<description>HTTP service wrapper around the test service</description>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="resp" type="String" mode="OUT"/>
|
|
</service>
|
|
|
|
<service name="testSoap" engine="soap" export="true"
|
|
location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
|
|
<description>SOAP service; calls the OFBiz test SOAP service</description>
|
|
<implements service="testSOAPScv"/>
|
|
</service>
|
|
|
|
<service name="testSoapSimple" engine="soap" export="true"
|
|
location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
|
|
<description>simple SOAP service; calls the OFBiz test service</description>
|
|
<implements service="testScv"/>
|
|
</service>
|
|
|
|
<service name="testRemoteSoap" engine="soap" export="true"
|
|
location="http://nagoya.apache.org:5049/axis/servlet/AxisServlet" invoke="echoString">
|
|
<description>Test SOAP service; calls echoString service on Axis server</description>
|
|
<namespace>http://soapinterop.org/</namespace>
|
|
<attribute name="message" type="String" mode="IN"/>
|
|
<attribute name="result" type="String" mode="OUT"/>
|
|
</service>
|
|
|
|
<service name="testBsh" engine="bsh" location="component://common/script/org/ofbiz/common/BshServiceTest.bsh" invoke="">
|
|
<description>Test BeanShell Script Service</description>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="result" type="String" mode="OUT"/>
|
|
</service>
|
|
|
|
<service name="testGroovy" engine="groovy" location="component://common/script/org/ofbiz/common/GroovyServiceTest.groovy" invoke="">
|
|
<description>Test Groovy Script Service</description>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="result" type="String" mode="OUT"/>
|
|
</service>
|
|
|
|
<service name="testJMSQueue" engine="jms" location="serviceMessenger" invoke="testScv">
|
|
<description>Test JMS Queue service</description>
|
|
<attribute name="message" type="String" mode="IN"/>
|
|
</service>
|
|
|
|
<service name="testJMSTopic" engine="jms" location="serviceMessenger" invoke="testScv">
|
|
<description>Test JMS Topic service</description>
|
|
<attribute name="message" type="String" mode="IN"/>
|
|
</service>
|
|
|
|
<service name="testMca" engine="java"
|
|
location="org.ofbiz.common.CommonServices" invoke="mcaTest">
|
|
<description>Test Service MCA</description>
|
|
<implements service="mailProcessInterface"/>
|
|
</service>
|
|
|
|
<service name="testRoute" engine="route" location="" invoke="" auth="true">
|
|
<description>Test the Route engine</description>
|
|
</service>
|
|
|
|
<service name="simpleMapListTest" engine="java" auth="false" export="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="simpleMapListTest">
|
|
<description>To test XML-RPC handling of Maps and Lists</description>
|
|
<attribute name="listOfStrings" type="List" mode="IN"/>
|
|
<attribute name="mapOfStrings" type="Map" mode="IN"/>
|
|
</service>
|
|
|
|
<service name="testJavaScript" engine="javascript" auth="false"
|
|
location="component://common/script/org/ofbiz/common/JavaScriptTest.js" invoke="">
|
|
<description>Test JavaScript Service</description>
|
|
<attribute name="message" type="String" mode="IN" optional="true"/>
|
|
<attribute name="result" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
<service name="testEntityFailure" engine="java" auth="false" validate="false"
|
|
location="org.ofbiz.common.CommonServices" invoke="entityFailTest">
|
|
<description>Cause a Referential Integrity Error</description>
|
|
</service>
|
|
|
|
<service name="entitySortTest" engine="java" auth="false" validate="false"
|
|
location="org.ofbiz.common.CommonServices" invoke="entitySortTest">
|
|
<description>Test Entity Comparable</description>
|
|
</service>
|
|
|
|
<service name="makeALotOfVisits" engine="java" auth="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="makeALotOfVisits">
|
|
<description>Test JavaScript Service</description>
|
|
<attribute name="count" type="Integer" mode="IN" optional="false"/>
|
|
<attribute name="rollback" type="Boolean" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<service name="byteBufferTest" engine="java" auth="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="byteBufferTest">
|
|
<description>Test Passing ByteBuffer To Service</description>
|
|
<attribute name="byteBuffer1" type="java.nio.ByteBuffer" mode="IN" optional="false"/>
|
|
<attribute name="saveAsFileName1" type="String" mode="IN" optional="false"/>
|
|
<attribute name="byteBuffer2" type="java.nio.ByteBuffer" mode="IN" optional="false"/>
|
|
<attribute name="saveAsFileName2" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<service name="uploadContentTest" engine="java" auth="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="uploadTest">
|
|
<description>Upload Content Test Service</description>
|
|
<attribute name="uploadFile" type="java.nio.ByteBuffer" mode="IN" optional="false"/>
|
|
<attribute name="_uploadFile_contentType" type="String" mode="IN" optional="false"/>
|
|
<attribute name="_uploadFile_fileName" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<service name="conditionReturnTrue" engine="java"
|
|
location="org.ofbiz.common.CommonServices" invoke="conditionTrueService">
|
|
<description>ECA Condition Service - Return TRUE</description>
|
|
<implements service="serviceEcaConditionInterface"/>
|
|
</service>
|
|
<service name="conditionReturnFalse" engine="java"
|
|
location="org.ofbiz.common.CommonServices" invoke="conditionFalseService">
|
|
<description>ECA Condition Service - Return FALSE</description>
|
|
<implements service="serviceEcaConditionInterface"/>
|
|
</service>
|
|
|
|
<service name="serviceStreamTest" engine="java" auth="false"
|
|
location="org.ofbiz.common.CommonServices" invoke="streamTest">
|
|
<implements service="serviceStreamInterface"/>
|
|
</service>
|
|
|
|
<service name="ping" engine="java" export="true" require-new-transaction="true"
|
|
location="org.ofbiz.common.CommonServices" invoke="ping">
|
|
<description>Test Ping Service</description>
|
|
<attribute name="message" type="String" mode="INOUT" optional="true"/>
|
|
</service>
|
|
</services>
|