我的出站jaxws-client
邮件没有设置内容处置。
如果我尝试在出站端点之前添加:
<message-properties-transformer doc:name="Message Properties">
<add-message-property key="Content-Disposition" value="somevalue"/>
</message-properties-transformer>
<https:outbound-endpoint exchange-pattern="request-response" host="12.34.56.78" port="1234" path="services/SOAP/Tests" doc:name="HTTP" connector-ref="testConnector" responseTimeout="50000" >
<cxf:jaxws-client
clientClass="com.test.Service"
enableMuleSoapHeaders="true"
operation="getTest"
port="Test"
wsdlLocation="wsdl/test.wsdl">
<cxf:inInterceptors>
<spring:bean id="cxfIn" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
</cxf:inInterceptors>
<cxf:outInterceptors>
<spring:bean id="cxfOut" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
</cxf:outInterceptors>
</cxf:jaxws-client>
</https:outbound-endpoint>
Content-Disposition 未添加到消息中。但是,当我在名称中添加一个字符时,例如,-Content-Disposition
而不是Content-Disposition
,会添加该值:
DEBUG 2013-11-06 12:54:53,286 [[muletest].header.stage1.02] httpclient.wire.header: >> "-Content-Disposition: somevalue[\r][\n]"
Content-Type
原始消息中已经存在的标头也会发生同样的情况。我也不能用<delete-message-property>
. 它们是否以某种方式保护免受修改?
如何添加或修改这些标题?