You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by xiangyu cao <ca...@gmail.com> on 2006/02/16 02:32:27 UTC

Can I add something to the Http header?

If the SOAP call is over HTTP, I wonder if I can put some information in the
HTTP header before I make the SOAP call. If yes, how?

Any help is appreciated!

Thanks a lot!

A new guy of Axis: Shawn

RE: Can I add something to the Http header?

Posted by Tom Jordahl <tj...@adobe.com>.
I don't have the APIs handy, but you should check out the
CommonsHTTPSender.java and HTTPSender.java classes to see how you can
set HTTP headers in requests via properties.

In the CommonsHTPPSender class for instance, see the addContextInfo()
function, which transfers users headers to the request.

This would be a great addition to the Axis Wiki when you figure out the
answer.
  http://wiki.apache.org/ws/FrontPage/Axis


Tom Jordahl
Adobe Server Development 

-----Original Message-----
From: WJ Krpelan [mailto:krpelan_wj@yahoo.com] 
Sent: Thursday, February 16, 2006 5:18 AM
To: axis-dev@ws.apache.org
Subject: Re: Can I add something to the Http header?

Hi cao,

the SOAPAction-Header can hold arbitrary text
(if you're using AXIS both Client and Server)
For other HTTP-Headers, you'll have to use some
HTTPClient. 

Cheers,

--- xiangyu cao <ca...@gmail.com> wrote:

> If the SOAP call is over HTTP, I wonder if I can put
> some information in the
> HTTP header before I make the SOAP call. If yes,
> how?
> 
> Any help is appreciated!
> 
> Thanks a lot!
> 
> A new guy of Axis: Shawn
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Can I add something to the Http header?

Posted by WJ Krpelan <kr...@yahoo.com>.
Hi cao,

the SOAPAction-Header can hold arbitrary text
(if you're using AXIS both Client and Server)
For other HTTP-Headers, you'll have to use some
HTTPClient. 

Cheers,

--- xiangyu cao <ca...@gmail.com> wrote:

> If the SOAP call is over HTTP, I wonder if I can put
> some information in the
> HTTP header before I make the SOAP call. If yes,
> how?
> 
> Any help is appreciated!
> 
> Thanks a lot!
> 
> A new guy of Axis: Shawn
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com