Announcement Announcement Module
Collapse
No announcement yet.
WS-Security: Receiver requirement is not met Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • WS-Security: Receiver requirement is not met

    Hey,

    Currenlty, I am trying the encrypt/decrypt the messages using WS-Security.The encryption/decryption at server end is working fine but the client is failing while decrypting the encrypted response from the server.You can find the stack trace below.

    com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Receiver requirement for URI#XWSSGID-1205128653464264302832 is not met
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.ver ifyInboundMessage(XWSSProcessor2_0Impl.java:136)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:417)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:359)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceive(WebServiceTemplate.java:3 46)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceive(WebServiceTemplate.java:3 37)
    Caused by: com.sun.xml.wss.XWSSecurityException: Receiver requirement for URI#XWSSGID-1205128653464264302832 is not met
    at com.sun.xml.wss.impl.apachecrypto.DecryptionProces sor.decryptReferenceList(DecryptionProcessor.java: 351)
    at com.sun.xml.wss.impl.apachecrypto.DecryptionProces sor.decrypt(DecryptionProcessor.java:143)
    at com.sun.xml.wss.impl.filter.EncryptionFilter.proce ss(EncryptionFilter.java:421)
    at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy( HarnessUtil.java:81)
    at com.sun.xml.wss.impl.HarnessUtil.processDeep(Harne ssUtil.java:252)
    at com.sun.xml.wss.impl.SecurityRecipient.processMess agePolicy(SecurityRecipient.java:849)
    at com.sun.xml.wss.impl.SecurityRecipient.processMess agePolicy(SecurityRecipient.java:801)
    at com.sun.xml.wss.impl.SecurityRecipient.validateMes sage(SecurityRecipient.java:242)
    at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.ver ifyInboundMessage(XWSSProcessor2_0Impl.java:134)
    ... 8 more


    Here I am providing the xwss client configuration



    <xwss:SecurityConfiguration
    xmlns:xwss="http://java.sun.com/xml/ns/xwss/config">

    <xwss:RequireEncryption>
    <xwss:X509Token certificateAlias="wssecurity" />
    <xwss:EncryptionTarget type= "qname" contentOnly="true" value="{http://www.w3.org/2003/05/soap-envelope}Body" />
    </xwss:RequireEncryption>
    <xwss:Encrypt>
    <xwss:X509Token certificateAlias="wssecurity" />
    <xwss:EncryptionTarget type= "qname" contentOnly="true" value="{http://www.w3.org/2003/05/soap-envelope}Body" />
    </xwss:Encrypt>

    </xwss:SecurityConfiguration>



    Did anybody faced this issue earlier?? Please provide the solution or share your thoughts on the same


    Cheers,
    Jim.
    Last edited by jimrosas; Mar 10th, 2008, 02:27 AM.
Working...
X