【发布时间】:2016-07-25 13:34:55
【问题描述】:
我得到了一个 RESTful 服务,我需要调用它
Content-Type: application/xml
问题在于 WSO2 ESB 自动添加了一个字符集:
Content-Type: application/xml; charset=UTF-8
服务不支持
在 WSO2 ESB 中,服务以下列方式调用:
<header action="set"
expression="get-property('PhysicalAddress')" name="To"/>
<property action="set" name="HTTP_METHOD" scope="axis2"
type="STRING" value="PUT"/>
<property action="set"
expression="concat('Basic ', base64Encode(concat(get-property('LOGIN'),':',get-property('PASSWORD'))))"
name="Authorization" scope="transport" type="STRING"/>
<property action="set" name="messageType" scope="axis2"
type="STRING" value="application/xml"/>
<call>
<endpoint>
<default format="rest">
<timeout>
<duration>120000</duration>
<responseAction>fault</responseAction>
</timeout>
</default>
</endpoint>
</call>
如何从 Content-Type 标头中删除字符集?
谢谢
【问题讨论】:
标签: character-encoding wso2 content-type