Custom SOAP Headers

Discussion in 'Java' started by plork, Apr 20, 2005.

  1. plork

    plork Guest

    Hello

    Can anyone point me to some sample code of how to write custom headers
    using apache axis

    i want to create a custom header and pass a value to it



    something like this, but haven't got very far

    public boolean addSOAPHeader(MessageContext context) throws
    Exception
    {
    context = MessageContext.getCurrentContext();
    Message message = context.getRequestMessage();
    SOAPEnvelope envelope = message.getSOAPEnvelope();
    SOAPEnvelope envelope = message.getSOAPEnvelope();
    SOAPHeaderElement element = envelope.addHeader("myHeaderNAme");

    }
     
    plork, Apr 20, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Working with Soap Headers

    , Sep 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    333
  2. oziris
    Replies:
    0
    Views:
    411
    oziris
    Nov 17, 2005
  3. dont bother
    Replies:
    0
    Views:
    847
    dont bother
    Mar 3, 2004
  4. Phil
    Replies:
    4
    Views:
    716
    Gabriel Genellina
    Jan 17, 2010
  5. Ian
    Replies:
    2
    Views:
    2,073
Loading...

Share This Page