• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSS4J with Soap

 
Madhu Mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am a newbie in this domain and I want to write some basic java code using the APIs in WSS4J in order to encrypt a SOAP message and I want to send the encrypted SOAP message it to the server. My friend has already written the stuff at the server side so that will be taken care of , but I want to badly write this client using WSS4J. Please remember I don't want to use Axis client or use a Service Locator . I just want to use these APIs and encrypt , sign the code and send it .

Thanks very much
Ranjan

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implementing WS-Security with Java and WSS4J seems to cover the subject well.
 
Madhu Mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the link . But the fact is that I can't use any Axis client . Instead, I need to build this request line by line in Java. Is there a way to do that? I have been able to get the SOAP request without security working but this is causing problems
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start reading through the WSS4J wiki: http://ws.apache.org/wss4j/ I don't know that it has complete examples, but from the numerous bits and pieces of code and advice you may be able to piece something together. The library also comes with a bunch of samples/

Why can't you use Axis?
 
Madhu Mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
I will do that but most of the libraries use the Axis jars.

I haven't got access to the AXIS unfortunately and all I can do is through java code, create a SOAP request with all these parameters . Is it possible to do that? I found these links


http://www.xml.com/lpt/a/ws/2004/10/20/wss5.html
http://www.xml.com/ws/2004/10/20/examples/Listing9.html

and I think what I want would be something similar to this right ? It would be great if you can confirm this .

Thanks once again.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that the "WSS4J" mentioned in that article is not the Apache WSS4J library. I don't think what the article describes is a full implementation, but I haven't looked at it in detail. But either way, using Apache WSS4J seems far preferable to me, and I don't think it has any dependency on Axis.
 
Madhu Mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I really did not know that . Do you have any basic code or any other info that can help me on this ? I am still reading through to understand the complete flow of what's happening.
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!