2 Replies Latest reply on Jun 28, 2006 7:01 AM by cliffb53

    How to get a SOAP header value from a context

    cliffb53

      Hi everyone,

      I'm trying to figure out how to add suport in my EJB webservice (JSR-109) to get a value from a header passed on by the webservice invoker. Is it possible to get the header value by using the EJB context?

      Putting a breakpoint at the setContext() method of the EJB and peeking into the SessionContext, I can see that there is a soapContext but this is null.

        • 1. Re: How to get a SOAP header value from a context
          heiko.braun

          Could supply some code examples?

          • 2. Re: How to get a SOAP header value from a context
            cliffb53

            I originally posted this because I wanted to retrieve the ws-security username token from the soap:header but I'm guessing that there must be a much cleaner way of doing that instead of fetching the header values myself, so I've posted another message where I ask how to get the username token (including the password) through JBoss' API it this is at all possible.

            The main idea here is to pick up the username and password and pass those to the mainframe when I invoke a mainframe transaction.

            Cheers,
            Celso