Properties WSO2含量“U型=”;“纯文本/纯文本”;没用?

Properties WSO2含量“U型=”;“纯文本/纯文本”;没用?,properties,wso2,esb,Properties,Wso2,Esb,在文档中,属性内容类型为: In situations where the ESB is receiving HTTP response messages without the Content-type header, this property can be used to specify a default content type to be used. If no such content type is specified for responses the ESB will def

在文档中,属性内容类型为:

In situations where the ESB is receiving HTTP response messages without the Content-type header, this property can be used to specify a default content type to be used. If no such content type is specified for responses the ESB will default to 'application/octet-stream'.
我有一个没有内容类型的HTTP测试服务响应消息,所以我在ESB配置中设置了属性Content_type=“text/plain”。答复是:

<axis2ns3:binary xmlns:axis2ns3="http://ws.apache.org/commons/ns/payload">UmV0dXJuQ29kZT0wMDAwMDANCg==</axis2ns3:binary>
<text xmlns="http://ws.apache.org/commons/ns/payload">ReturnCode=000000</text>
似乎上面的属性内容类型设置没有用,仍然默认为“应用程序/八位字节流”


我有一个没有内容类型头的HTTP服务,然后响应消息是二进制的。如何设置响应内容\u TYPE=“text/plain”?有人能帮我吗?非常感谢。

在axis2.xml($ESB_HOME/repository/conf/axis2/axis2.xml)中的messageFormatters中添加以下行


然后,可以使用属性中介更改内容类型,如下所示:

<property name="messageType" value="text/plain" scope="axis2"/>

您可以发布用于设置内容类型的ESB配置吗?
<property name="messageType" value="text/plain" scope="axis2"/>