当我通过 WSO MI 发送请求时获取 Content-Type application/xml 而不是 text/xml

问题描述 投票:0回答:1

您好,我正在尝试发送标头内容类型为 text/xml 的请求,但我收到了 application/xml。

线路日志如下:

DEBUG {header} - >> "Content-Type: application/xml; charset=UTF-8[\r][\n]"

我用来制作内容类型text/xml的代码如下:

1. <header name="Content-Type" scope="transport" value="text/xml"/>
2. <property name="ContentType" scope="axis2" value="text/xml"/>

我使用了这两行,都生成了 application/xml。如何确保内容类型是text/xml而不是application/xml?

任何帮助都意义重大

header wso2 httprequest content-type
1个回答
0
投票

设置以下属性。

<property name="messageType" value="text/xml" scope="axis2"/>
© www.soinside.com 2019 - 2024. All rights reserved.