-
Jul 18th, 2010, 04:08 PM
#1
WS-Security Header with JAX-WS RI
Hi, I hope I am in the correct forum and the question is not answered elswhere easily findable, because I googles a lot already. But it could also be that the heat of these days influenced my googling abilities.
I have a business server running in Apache 5.5 as WebApplication. Amongst other things it uses Spring 2.5.6. Now I need to access a SOAP Service with the JAX-WS RI. For this I used the wsimport Ant task to generate the Entities and stuff from the WSDL. Then I used the JaxWsPortProxyFactoryBean of Spring for getting a Proxy to invoke the Service. I have also added username and password to the proxy, but this just adds basic HTTP Authorization headers, not the WS-Security SOAP headers.
My problem now is, that I need to add WS-Security SOAP Headers for UsernameToken security. Unfortunately I did not really found much helpful information as to what library to use in this situation and how to do this most easily.
I hope someone here can help me with this.
Last edited by Vampire; Jul 19th, 2010 at 04:59 AM.
-
Jul 19th, 2010, 05:03 AM
#2
I've just added some more information about what I did already to not produce misunderstandings.
-
Jul 22nd, 2010, 08:41 AM
#3
-
Nov 8th, 2011, 11:45 AM
#4
Just if someone else comes here.
Afair I just used the wrong WSDL that didn't have the required security policies in it. When I used the correct up-to-date WSDL the JAX-WS RI automagically behaved as expected.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules