Ruchith,

I replaced my keystore with the sample keystores (bob & alice alias) that come 
with WSS4J 1.5 and I was able to fix the problem : Unexpected number of 
X509Data: for decryption (KeyId). So that means the way I generated my keystore 
was incorrect. I have to generate me keystore the same way the bob & alice 
keystores were generated to make the interoperability possible between .NET 
(WSE 3.0) and java (WSS4J).


Thanks for replying,

Alberto


-----Original Message-----
From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 4:15 AM
To: Acevedo, Alberto RDECOM CERDEC SED
Cc: [email protected]
Subject: Re: .NET client & Java web service interoperability --> Error: Unex 
pected number of X509Data: for decryption (KeyId)

Hi Alberto,

Seems like the .NET client uses a key reference mechanism that is not
supported by WSS4J.

Can you please post the request message generated by the .NET client.

Thanks,
Ruchith

On 6/8/06, Acevedo, Alberto RDECOM CERDEC SED
<[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hello,
>
>
>
> I have a java Web service running on Tomcat 1.5.15 and using wss4j version
> 1.5. The keystore I'm using is a pkcs12 generated with openssl. I'm able to
> encrypt/decrypt the usernameToken using a java web client. When I use a .NET
> client in Windows XP that is using the same keystore the web service fails
> to decrypt and I get the following error:
>
>
>
> Unexpected number of X509Data: for decryption (KeyId)
>
>
>
> I read all the messages in this newsgroup and I found other members having
> the same problem but no solutions. I suspect it has something to do with the
> .NET configuration especially the Default Session Key Algorithm. How do I
> configure .NET and the keystore to interoperate with a java web service?
>
>
>
> After days trying to fix the problem I ran out of options. Hopefully it is
> something vary basic that I'm not seing.
>
>
>
> Please help,
>
> Alberto
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to