You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Peter Wilkes <pw...@cowpie.acm.vt.edu> on 2006/09/11 17:26:41 UTC
[Axis2] attaching new HTTP headers to a request/envelope
Ok, i'm looking to add a custom header to the HTTP request made by axis2.
ex.
HTTP GET http://www.mysite.org/places/place.html
MyHeaderInfo: additional info
i tried using the Stub._getServiceClient().addHeader(OMElement element)
however the header i added didnt seem to appear when i used ethereal to
watch the traffic. again i want to add this to the HTTP header/evelope
not the SOAP header/envelope
any help anyone could provide would be greatly appreciated.
thanks
Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] attaching new HTTP headers to a request/envelope
Posted by Eran Chinthaka <ch...@opensource.lk>.
http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters#HTTP_HEADERS
Peter Wilkes wrote:
> Ok, i'm looking to add a custom header to the HTTP request made by axis2.
>
> ex.
> HTTP GET http://www.mysite.org/places/place.html
> MyHeaderInfo: additional info
>
>
> i tried using the Stub._getServiceClient().addHeader(OMElement element)
> however the header i added didnt seem to appear when i used ethereal to
> watch the traffic. again i want to add this to the HTTP header/evelope
> not the SOAP header/envelope
>
> any help anyone could provide would be greatly appreciated.
>
>
> thanks
>
> Pete
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>