当WSO2 esb在wso2中给出base64代码响应时?

时间:2014-05-26 11:59:16

标签: wso2 wso2esb

我使用的是WSO2 4.7.01版本。每当成功响应时,我都会收到来自esb的xml响应。但有时我会收到来自esb的base64编码格式响应,只要有soap:server或soap:client或从应用程序服务器返回自定义错误响应。即使我是isung接受属性发送请求我得到上述所述的响应。如何处理或避免esb的这种回应。

例如

<axis2ns65:binary xmlns:axis2ns65="http://ws.apache.org/commons/ns/payload">
PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz48c29hcDpFbnZlbG9wZSB4bW
xuczpzb2FwPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VudmVsb3BlLyI+PHNvYXA6Qm9k
eT48cmVzcG9uc2U+PHN0YXR1c0NvZGU+R0xYMDAxNTI5PC9zdGF0dXNDb2RlPjxzdGF0dXNNZXNzYWdlPkludm
FsaWQgVmVoaWNsZSBJZHMgYXJlOjg1MDA4PC9zdGF0dXNNZXNzYWdlPjxzdGF0dXM+ZmFpbHVyZTwvc3RhdHVz
PjwvcmVzcG9uc2U+PC9zb2FwOkJvZHk+PC9zb2FwOkVudmVsb3BlPg==
</axis2ns65:binary>
</soapenv:Body>
</soapenv:Envelope>


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body><axis2ns182:binary xmlns:axis2ns182="http://ws.apache.org/commons/ns/payload">
</axis2ns182:binary>
</soapenv:Body>
</soapenv:Envelope>

1 个答案:

答案 0 :(得分:0)

请尝试以下步骤

  1. 打开{ESB_HOME} /repository/conf/axis2/axis2.xml

  2. 取消评论以下内容

    &lt; messageFormatter contentType =“text / xml”class =“org.wso2.carbon.relay.ExpandingMessageFormatter”/&gt;

    &lt; messageBuilder contentType =“text / plain”class =“org.wso2.carbon.relay.BinaryRelayBuilder”/&gt;