WSO2 - 使用 SOAP(自定义代理)测试回显服务时出错

WSO2 - Error while testing echo service with SOAP (custom proxy)

我是 WSO2 世界的新手,我正在尝试使用 Payload 和 SEND 创建自定义代理服务。 我正在使用 WSO2 ESB 4.8.1

这是`

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="Test_02_ESBCPSendPayLoad"
       transports="https http"
       startOnLoad="true"
       trace="disable">
   <target>
      <endpoint>
         <address uri="http://wso2:8282/services/echo"/>
      </endpoint>
      <inSequence>
         <log level="custom" separator=",">
            <property name="LOG1" value="LOG1"/>
         </log>
         <payloadFactory media-type="xml">
            <format>
               <echo:echoInt xmlns:echo="http://echo.services.core.carbon.wso2.org">
                  <in></in>
               </echo:echoInt>
            </format>
            <args>
               <arg xmlns:echo="http://echo.services.core.carbon.wso2.org"
                    evaluator="xml"
                    expression="//*[local-name()='return']"/>
            </args>
         </payloadFactory>
         <log level="full" separator=",">
            <property name="LOG2" value="LOG2"/>
         </log>
         <log level="custom" separator=",">
            <property name="LOG3" value="LOG3"/>
         </log>
      </inSequence>
      <outSequence>
         <log level="custom" separator=":">
            <property name="LOG4" value="LOG4"/>
         </log>
         <send/>
      </outSequence>
      <faultSequence/>
   </target>
   <publishWSDL uri="http://wso2:8282/services/echo?wsdl"/>
</proxy>

` 当我试图用 SOAP 测试它时,我收到了这个错误:

TID: [0] [ESB] [2015-06-25 10:19:37,651] ERROR {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -
{org.apache.axis2.rpc.receivers.RPCMessageReceiver} java.lang.IllegalArgumentException

这就是我猜的原因:

INFO {org.apache.synapse.mediators.builtin.LogMediator} - To: /services/Test_02_ESBCPSendPayLoad.Test_02_ESBCPSendPayLoadHttpSoap11Endpoint:WSAction: urn:echoInt:SOAPAction: urn:echoInt:MessageID: urn:uuid:c8941529-7a84-46b1-9981-d6596d35de49:Direction: request:LOG2 = LOG2:Envelope: {org.apache.synapse.mediators.builtin.LogMediator}

这是 SOAP 请求:

> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:echo="http://echo.services.core.carbon.wso2.org">   
> </soapenv:Header>
> <soapenv:Body>
>       <echo:echoInt>
>          <!--Optional:-->
>          <in>1</in>
>       </echo:echoInt>    
> </soapenv:Body> 
> </soapenv:Envelope>

有人可以帮我吗?

谢谢!

克劳迪奥

固定..

错误在 PayLoad 参数中..

 <args>
    <arg xmlns:echo="http://echo.services.core.carbon.wso2.org"
    evaluator="xml"
    expression="//in"/>
</args>

谢谢

问候 克劳迪奥