aspose file tools*
The moose likes Web Services and the fly likes testing java web services with dotnet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "testing java web services with dotnet" Watch "testing java web services with dotnet" New topic
Author

testing java web services with dotnet

gaurav abbi
Ranch Hand

Joined: Jan 05, 2007
Posts: 108
i'm a java guy. we have a web service provider and consumer both in java. i'm testing the interoperability part with .Net1.1,
i'm able to successfully send a signed and encrypted soap request from the .Net Client to my web service provider and my provider is able to consume it successfully, but i'm stuck at verifying and decrypting the soap response send by my java ws provider to .net client.
i tried the something like this.

//verifySignature(el);
X509SecurityToken respSignVerfToken = getCertToken4Verification();
SoapContext responseSoapCtx = lstservice.ResponseSoapContext;
responseSoapCtx.Security.Tokens.Add(respSignVerfToken);
MessageSignature respSig = new MessageSignature(signatureToken);
responseSoapCtx.Security.Elements.Add(sig);
//signature verf ends here
but i'm getting the following exception in .Net
An unhandled exception of type 'Microsoft.Web.Services2.Security.SecurityFault' occurred in microsoft.web.services2.dll

Additional information: Referenced security token could not be retrieved

can you point to what could be the possible reason for this? also it would be helpful if you can point to some sample code for this. i tried googling without much success.


thanks,<br />gaurav abbi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: testing java web services with dotnet
 
Similar Threads
Help! .NET client not working with Java web service in JBoss
Specific Attachment Problem...
decrypting a soap response in .Net
Is it possible to have my replyqueue configured on different JMS server from request queue?
.Net Client for Axis Web services