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

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:
    398
  2. oziris
    Replies:
    0
    Views:
    489
    oziris
    Nov 17, 2005
  3. Erik
    Replies:
    0
    Views:
    456
  4. dont bother
    Replies:
    0
    Views:
    1,063
    dont bother
    Mar 3, 2004
  5. SoftwareGuy
    Replies:
    0
    Views:
    340
    SoftwareGuy
    Oct 7, 2006
  6. Phil
    Replies:
    4
    Views:
    988
    Gabriel Genellina
    Jan 17, 2010
  7. Ian
    Replies:
    2
    Views:
    2,695
  8. Michael
    Replies:
    3
    Views:
    304
    Jerry Goldin
    May 12, 2004
Loading...