axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: setting SOAPAction MimeHeader results in 2 SOAPAction headers in HTTP message.
Date Thu, 02 Sep 2004 18:32:58 GMT
please open a bug report with some sample code to recreate the problem.

thanks,
dims

On Thu, 2 Sep 2004 12:32:41 -0500, Erich Oliphant <ericho@vantixweb.com> wrote:
> Hi I am using Axis 1.2 beta 3.
> 
> The following snippet:
> 
> ...
> MessageFactory factory = MessageFactory.newInstance();
> 
>             SOAPMessage message = factory.createMessage();
> 
>             MimeHeaders mh = message.getMimeHeaders();
>             mh.addHeader("SOAPAction",
> "http://www.trx.com/TRXServices/TRXSSabre/SeatMapGet");
> 
> is creating the following headers in the SOAP request:
> 
> ...
> 
> Pragma: no-cache
> SOAPAction: "http://www.trx.com/TRXServices/TRXSSabre/SeatMapGet"
> Content-Length: 1574
> SOAPAction: http://www.trx.com/TRXServices/TRXSSabre/SeatMapGet
> ...
> 
> The SOAPAction header is generated twice for some reason.  Remvoing the
> addHeader() results in neither SOAPAction.  Further, adding any other
> arbitrary header (i.e. addHeader("foo","bar") results in a single entry as
> expected.
> 
> Any ideas?
> 
> Thanks
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message