WSO2 以二进制形式响应有效载荷 [英] WSO2 responds payload in binary

查看:21
本文介绍了WSO2 以二进制形式响应有效载荷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个公司环境,并且在axis2.xml 和carbon.xml 中进行更改会产生影响.

I have a corportative environment and make changes in axis2.xml and carbon.xml can generate impacts.

我的问题是 WSO2 以二进制形式响应消息作为示例:

My problem is that WSO2 is responding the message in binary as an example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> 
   <soapenv:Body> 
      <axis2ns1073:binary xmlns:axis2ns1073="http://ws.apache.org/commons/ns/payload">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48UzpFbnZlbG9wZSB4bWxuczpTPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VudmVsb3BlLyI+PFM6Qm9keT48UzpGYXVsdCB4bWxuczpuczQ9Imh0dHA6Ly93d3cudzMub3JnLzIwMDMvMDUvc29hcC1lbnZlbG9wZSI+PGZhdWx0Y29kZT4wMDU8L2ZhdWx0Y29kZT48ZmF1bHRzdHJpbmc+RVJSTyBETyBDUk0gLSBFU1RBIE9TIEpBIEZPSSBJTlNFUklEQSBOQSBCQVNFIERPIFNQUzI8L2ZhdWx0c3RyaW5nPjxkZXRhaWw+PGlucHV0TWVzc2FnZVZhbGlkYXRpb25GYXVsdD5PUkEtMDAwMDE6IHVuaXF1ZSBjb25zdHJhaW50IFdTX0hJU1RPUklDT19FTlRSQURBX1BLIHZpb2xhZGE8L2lucHV0TWVzc2FnZVZhbGlkYXRpb25GYXVsdD48L2RldGFpbD48L1M6RmF1bHQ+PC9TOkJvZHk+PC9TOkVudmVsb3BlPg==</axis2ns1073:binary> 
   </soapenv:Body> 
</soapenv:Envelope> 

有什么方法或中介可以解决这个问题,而不会对 ESB 内的其他项目产生太大影响吗?

Is there any way or mediator I can resolve this without much impact on other projects within the ESB?

推荐答案

看起来你已经启用了二进制消息生成器/格式化器..是否需要使用它们?

Looks like you have enabled the binary message builder/formatter..Is there any need to use them?

如果您使用 ESB 4.7.0/4.8.X ,所有这些版本都使用 Pass thru 传输..您使用的 ESB 版本是什么?尝试禁用二进制消息构建器并使用默认消息构建器/格式化程序.

If you use ESB 4.7.0/4.8.X , all those versions are using Pass thru transport.. What is the ESB version you use? Try disable binary message builder and use default message builders/formatters.

如果您针对任何特定要求使用二进制构建器,那么如果您想在消息通过系统时对其进行处理,则使用构建器中介来构建消息.

If you use binary builders for any specific requirement then use builder mediator to build message if you want to process the message when it passing through the system.

这篇关于WSO2 以二进制形式响应有效载荷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆