Xml WSO2 ESB无法从rest API获取响应

Xml WSO2 ESB无法从rest API获取响应,xml,rest,soap,wso2esb,Xml,Rest,Soap,Wso2esb,我有一个代理,它将数据放入参数({uri.var.parameter}),并为其中的post参数调用RESTAPI。对此api的响应如下所示: <ResultSet count="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result> <id>126</id> <contact_type>Individual</contac

我有一个代理,它将数据放入参数({uri.var.parameter}),并为其中的post参数调用RESTAPI。对此api的响应如下所示:

<ResultSet count="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <Result>
      <id>126</id>
      <contact_type>Individual</contact_type>
       .
       .
       .
</Result>
</ResultSet>

126
个人
.
.
.
当我在soapui中使用参数调用此api时,我可以看到上面的响应,但是当我通过WSO2 ESB 4.9.0调用它时,我收到一个错误: 第一个元素必须包含本地名称、信封,但找到了ResultSet 我的请求已发布到api,但wso2 esb无法解析响应。 当我在synapse中设置property OUT_ONLY=true时,我的请求成功了,但显然没有收到任何响应。 当我在SoapUI中检查响应头中的内容类型时,它是:text/xml;字符集=UTF8 我在axis2配置文件的messageFomatter和messageBuilder中找到并添加了content_type:text/xml,但仍然收到相同的错误。
你能给我你的解决方案吗。谢谢

您可以将端点的格式更改为“pox”



谢谢。我需要使用HTTP端点,因为我将参数作为URI模板传递给API。您也可以尝试设置
尝试设置
<endpoint>
    <address format="pox" uri="http://www.example.com" />
</endpoint>