Results 1 to 4 of 4

Thread: WS-Security Header with JAX-WS RI

  1. #1
    Join Date
    Mar 2009
    Posts
    9

    Default 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.

  2. #2
    Join Date
    Mar 2009
    Posts
    9

    Default

    I've just added some more information about what I did already to not produce misunderstandings.

  3. #3
    Join Date
    Mar 2009
    Posts
    9

    Default

    Noone? :-(

  4. #4
    Join Date
    Mar 2009
    Posts
    9

    Default

    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
  •