【问题标题】:SOAP header Security was not understoodSOAP 标头安全性未被理解
【发布时间】:2011-11-02 17:49:07
【问题描述】:

我正在使用 asp.net 3.5 C# 作为 web 服务使用者,并且我正在尝试使用第三方 java web 服务,并且我已经在我的请求中附加了 soap 标头安全性。我的请求没有问题,但我得到的响应部分是“不理解 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>

提前致谢。

【问题讨论】:

  • 您确定这是响应信封,而不是请求吗?您可以尝试删除 mustUnderstand="1" 属性,然后查看安全性是否从那里工作...
  • 是的。我使用 Fiddler 来获得响应。如何删除 mustUnderstand="1"?因为响应来自第 3 方 java webservice 而我没有控制权。谢谢

标签: soapheader


【解决方案1】:

我最终将整个项目从 VS2008 降级到 VS2005,以最大限度地发挥 WSE3.0 的特性和功能。呵呵

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多