wood burning stoves 2.0*
The moose likes Web Services and the fly likes WS-Security on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WS-Security on Tomcat" Watch "WS-Security on Tomcat" New topic
Author

WS-Security on Tomcat

Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 41
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
Which SOAP implementation are you using?
Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 41
Hi Tim, I'm using Metro
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
metro ws-security yields quite a few results; did none of those help?
Amr k. Saleh
Ranch Hand

Joined: Aug 23, 2010
Posts: 41
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Aug 23, 2010
Posts: 41
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
 
subject: WS-Security on Tomcat
 
Similar Threads
New to Webservices. want to know required jars and tools and know how to implement Hello World WS.
Client Server Tech. Application
Job Prospects for Web Services
Java server - jumping in head-first
Creating Web service dynamically