aspose file tools*
The moose likes Web Services and the fly likes xws secuirty  Encryption and signature Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "xws secuirty  Encryption and signature Exception" Watch "xws secuirty  Encryption and signature Exception" New topic
Author

xws secuirty Encryption and signature Exception

Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 41
Hi All,

I've implemented ws-secuirty using metro api, i've implemented the callbacks, and everything works fine alone

Encryption alone works fine, signature alone works fine, but when i try to do both it throws the below exception:

javax.xml.ws.soap.SOAPFaultException: com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.impl.PolicyViolationException: Expected Signature Element as per receiver requirements, found ReferenceList

ths SOAP message is like below:




anyone has an idea how to fix this

thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xws secuirty Encryption and signature Exception