使用SoapUI拦截加密的SOAP消息

时间:2015-09-12 07:26:20

标签: encryption soapui ws-security

我尝试用SoapUI拦截加密的soap消息。 WS Security with Wildfly 8和Eclipse IDE的参考站点是

https://docs.jboss.org/author/display/JBWS/WS-Security#WS-Security-Authenticationandauthorization

WS安全性实施成功,响应消息已成功加密。 WS安全性的主要关键是manifest.mf。我在manifest.mf文件中添加以下行,它在Eclipse IDE中运行良好。

Manifest-Version: 1.0
Dependencies: org.apache.cxf.impl, org.apache.ws.security services
Class-Path: 

但在SoapUI应用程序中,soap消息加密失败。我参考网站是

http://www.soapui.org/soapui-projects/ws-security.html

http://blog.thilinamb.com/2011/02/invoking-secured-web-service-with.html

SEI抛出以下异常。

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>These policy alternatives can not be satisfied: 
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}ProtectionToken
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}IncludeTimestamp: Received Timestamp does not match the requirements
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SymmetricBinding: Received Timestamp does not match the requirements
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}EndorsingSupportingTokens: The received token does not match the endorsing supporting token requirement
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token: The received token does not match the token inclusion requirement
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}EncryptedParts: {http://schemas.xmlsoap.org/soap/envelope/}Body not ENCRYPTED
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SignedParts: {http://schemas.xmlsoap.org/soap/envelope/}Body not SIGNED</faultstring>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

当我没有在manifest.mf文件中添加Dependancies行时,Eclipse IDE中抛出了同样的异常。你认为那些是相关的并且具有相同的配置问题吗?

0 个答案:

没有答案
相关问题