【发布时间】:2016-12-09 06:11:26
【问题描述】:
我已经构建了一个向外部 Web 服务使用者发送请求的流程。此服务已启用安全性,我已将其配置为这样
<ws:consumer-config name="Test_WS" wsdlLocation="test.wsdl" service="TestService" port="TestServicePort" serviceAddress="http://${service.host}:${service.port}/test/services" connectorConfig="HttpsConnector" doc:name="Web Service Consumer">
<ws:security>
<ws:wss-username-token username="${service.user}" password="${service.pwd}" passwordType="TEXT"/>
</ws:security>
</ws:consumer-config>
发送请求时,抛出 SOAP 错误:
Root Exception stack trace:
org.mule.module.ws.consumer.SoapFaultException: Did not understand "MustUnderstand" header(s):. Message payload is of type: ElementNSImpl
at org.mule.module.ws.consumer.WSConsumer$1.processNext(WSConsumer.java:196)
有没有办法禁用 MustUnderstand 标头?谢谢。
【问题讨论】:
标签: web-services soap mule cxf