如何为 {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd} 添加虚拟 SOAPHandler?
我正在使用 jax-ws 从 JAVA 调用使用 WS-Security 的 SOAP 服务。 问题是响应包含一些 MustUnderstand 标头,并且我收到 Element notunderstanded SoapFaultException。
响应标头如下所示:
<s:Header>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2011-12-19T15:38:49.023Z</u:Created>
<u:Expires>2011-12-19T15:43:49.023Z</u:Expires>
</u:Timestamp>
</o:Security>
我可以为该标头添加一个虚拟 SOAPHandler 吗?或者也许将其修改为mustUnderstand =“0”?又如何呢?
I am calling a SOAP service that uses WS-Security from JAVA using jax-ws.
The problem is that the response contains some mustUnderstand headers and I get an Element not understood SoapFaultException.
The response header looks like this:
<s:Header>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2011-12-19T15:38:49.023Z</u:Created>
<u:Expires>2011-12-19T15:43:49.023Z</u:Expires>
</u:Timestamp>
</o:Security>
Could I add a dummy SOAPHandler for that header? or maybe modify it to mustUnderstand="0"? and how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错过了在 handler.Override getHeaders() 方法中重写 getHeaders() 方法
Missed to override the getHeaders() method in the handler.Override getHeaders() method