Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WS-Security on Tomcat

 
Amr k. Saleh
Ranch Hand
Posts: 42
  • 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
Saloon Keeper
Posts: 3271
55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which SOAP implementation are you using?
 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim, I'm using Metro
 
Tim Moores
Saloon Keeper
Posts: 3271
55
  • 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
  • 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
Saloon Keeper
Posts: 3271
55
  • 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
  • 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
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!