File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WS-Security on Tomcat

 
Amr k. Saleh
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

It is very urgent, can anyone help me please on how to implement WS-Secuirty on Tomcat, i want to implement

UserToken
Xml Signature
Xml Encryption


thanks in advance
 
Tim Moores
Bartender
Pie
Posts: 2495
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which SOAP implementation are you using?
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim, I'm using Metro
 
Tim Moores
Bartender
Pie
Posts: 2495
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
metro ws-security yields quite a few results; did none of those help?
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found it is quite difficult to configure it in wsdl, is it ok to add webservice handler and add the security headers in the SOAP message (using WSS4J ) ?
 
Tim Moores
Bartender
Pie
Posts: 2495
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally, you wouldn't use WSS4J directly, you would use the declarative facilities of Metro. There may be circumstances where WS-Security being applied programmatically (via WSS4J) is advantageous, but those are few and far in between.
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much Tim, i found this tutorial very useful

http://mananvpanchal.blogspot.com/2010/06/jax-ws-webservice-with-plaintext.html
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic