• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

testing java web services with dotnet

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic