2011-10-12 67 views
1

我正在使用一个asp.net 3.5 C#作为web服务使用者,我试图使用第三方java web服务,并且我已经在我的请求中附加了soap头部安全性。我的请求没有问题,但是我收到的响应部分“SOAP头文件安全性不明白。”也许我错过了我的一些配置或Java端的东西?SOAP头安全性不明白

这里的响应信封:

<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> 

在此先感谢。

+0

您确定这是响应信封,而不是请求吗?您可以尝试删除'mustUnderstand =“1”'属性,并查看安全性是否从那里运行... – bdares

+0

是的。我使用Fiddler来获得响应。如何删除mustUnderstand =“1”?因为响应来自第三方java web服务,我没有控制权。谢谢 – tthreetorch

回答

0

我最终将整个项目从VS2008降级到VS2005,以最大化WSE3.0的特性和功能。 XD