File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Problem with decryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with decryption" Watch "Problem with decryption" New topic

Problem with decryption

Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 132
I have a web service written in Java and I have a client who has a web service written in .NET. We are using x509 security certificates. When my client sends a message to my service, he gets an error that says, "General security error (Unexpected number of X509Data: for decryption (KeyId))" . I checked with my client and he is using the correct certificates to sign and encrypt his messages and I'm using the correct certificates to decrypt messages and verify signatures. Below is the error message that he was getting. What could be the problem?

javax.xml.soap.SOAPException: General security error (Unexpected number of X509Data: for decryption (KeyId))
at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(
at com.thehartford.savi.impl.util.WSClient.sendSOAPRequest(
at com.thehartford.savi.impl.util.WSClient.main(
Caused by: org.apache.axis2.AxisFault: General security error (Unexpected number of X509Data: for decryption (KeyId))
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
at org.apache.axis2.description.OutInAxisOperationClient.send(
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl( null

at org.apache.axis2.client.OperationClient.execute(
at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(
... 3 more

I agree. Here's the link:
subject: Problem with decryption
It's not a secret anymore!