You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Brian Abbott <br...@dommoni.com> on 2005/03/09 07:07:25 UTC

SOAP Headers

Hi, 
 
I am wondering how I might go about setting the value of a SOAP Header
element. I know I can insert the attribute I want by inserting: 
 
m_pCall->setTransportProperty(SOAPACTION_HEADER, "VARNAME");
 
but, how do I actually set VARNAME's value?
 
Thanks,
 
Brian

Re: SOAP Headers

Posted by Rangika Mendis <ra...@opensource.lk>.
MessageHi Brian,

In m_pCall->setTransportProperty() we set the http header not the soap header.

If you want to create a soap header call, createHeaderBlock(AxisChar* pachLocalName, * AxisChar* pachUri, AxisChar* pachPrefix) 

eg: m_pCall->createHeaderBlock(AxisChar* pachLocalName, * AxisChar* pachUri, AxisChar* pachPrefix) ;



Regards
Rangika
  ----- Original Message ----- 
  From: Brian Abbott 
  To: axis-c-user@ws.apache.org 
  Sent: Wednesday, March 09, 2005 12:07 PM
  Subject: SOAP Headers


  Hi, 

  I am wondering how I might go about setting the value of a SOAP Header element. I know I can insert the attribute I want by inserting: 

  m_pCall->setTransportProperty(SOAPACTION_HEADER, "VARNAME");

  but, how do I actually set VARNAME's value?

  Thanks,

  Brian