File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 37
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
 
Similar Threads
When encrypting a SOAP, does the AES key embedded in SOAP header?
Rampart encrypting options: I can't encrypt parameters
Problem while Encrypting SOAP body using Metro
Rampart sample not encrypting soap message
Interoperability between WCF and WSIT