SOAP 标头安全性不被理解
我正在使用 asp.net 3.5 C# 作为 Web 服务使用者,并且我正在尝试使用第三方 java Web 服务,并且我已经根据我的请求附加了肥皂标头安全性。我的请求没有问题,但我得到的响应部分是“SOAP 标头安全性无法理解”。也许我错过了我这边的一些配置或者java方面的一些配置?
这是回复信封:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2011-10-12T01:15:43.484Z</wsu:Created>
<wsu:Expires>2011-10-12T01:20:43.484Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</env:Header>
<env:Body>
<pv:StatusResponse xmlns:pv="http://tempuri.org/lps" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<pv:status>0</pv:status>
</pv:StatusResponse>
</env:Body>
</env:Envelope>
提前致谢。
I'm using a asp.net 3.5 C# as a webservice consumer and I'm trying to consume a third party java webservice and I have already attached the soap header security on my request. There is no problem on my request but the response part I'm getting "SOAP header Security was not understood." maybe I missed some configuration on my end or something on the java side?
Here's the response envelope:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2011-10-12T01:15:43.484Z</wsu:Created>
<wsu:Expires>2011-10-12T01:20:43.484Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</env:Header>
<env:Body>
<pv:StatusResponse xmlns:pv="http://tempuri.org/lps" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<pv:status>0</pv:status>
</pv:StatusResponse>
</env:Body>
</env:Envelope>
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终将整个项目从 VS2008 降级到 VS2005,以最大限度地发挥 WSE3.0 的特性和功能。 XD
I end up downgrading the entire project from VS2008 down to VS2005 in order to maximize the WSE3.0 features and functionality. XD