计划任务无法使用WSO2 ESB中的WSDL代理服务

时间:2019-01-21 07:54:28

标签: wso2esb

我是wso2 ESB的新手。感谢您的帮助。我创建了一个运行良好的wsdl代理服务。我们已经使用“ wso2 try it”对其进行了测试,并且它提供了预期的响应。创建计划任务后,我面临的挑战是。我遇到以下错误:

[2019-01-21 10:31:29,692] [] ERROR - Axis2Sender Connection:close,Content-Type:text/xml;charset=utf-8,Date:Mon, 21 Jan 2019 07:31:29 GMT,Transfer-Encoding:chunked, Unexpected error sending message back org.apache.axis2.AxisFault: Transport out has not been set   
[2019-01-21 10:31:29,717] []  INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:bab9e5db-5faf-4b24-9477-f6e24f71d886, Direction: response, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Connection:close,Content-Type:text/xml;charset=utf-8,Date:Mon, 21 Jan 2019 07:31:29 GMT,Transfer-Encoding:chunked, Unexpected error sending message back, Envelope: 
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
    <soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value>
</soapenv:Code><soapenv:Reason>
<soapenv:Text xml:lang="en">Cannot find dispatch method for {}claimdefid</soapenv:Text></soapenv:Reason></soapenv:Fault>
</soapenv:Body></soapenv:Envelope>

指向托管在tomcat中的Web服务的代理配置如下:

<proxy name="ProxyMondayWSDL" startOnLoad="true" transports="tcp http">
        <target>
            <endpoint>
                <wsdl port="FetchUpdateClaimsOFAPort"
                    service="FetchUpdateClaimsOFA" uri="http://localhost:8080/UpdateClaimsMedToOFaTest/FetchUpdateClaimsOFA?wsdl"/>
            </endpoint>
            <outSequence>
                <send/>
            </outSequence>
        </target>
        <publishWSDL uri="http://localhost:8080/UpdateClaimsMedToOFaTest/FetchUpdateClaimsOFA?wsdl"/>
    </proxy>

任务配置如下所示:

<task class="org.apache.synapse.startup.tasks.MessageInjector"
        group="synapse.simple.quartz" name="ScheduledTask2">
        <trigger interval="10"/>
        <property name="proxyName" value="ProxyMondayWSDL" xmlns:task="http://www.wso2.org/products/wso2commons/tasks"/>
        <property name="injectTo" value="proxy" xmlns:task="http://www.wso2.org/products/wso2commons/tasks"/>
        <property name="message" xmlns:task="http://www.wso2.org/products/wso2commons/tasks">
            <claimdefid xmlns="">110</claimdefid>
        </property>
        <property name="soapAction" value="FetchUpdateClaimsOFA" xmlns:task="http://www.wso2.org/products/wso2commons/tasks"/>
    </task>

请让我知道我需要做些什么,以确保计划的任务正常进行。

0 个答案:

没有答案