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 Erich Oliphant <er...@vantixweb.com> on 2004/09/02 19:32:41 UTC
setting SOAPAction MimeHeader results in 2 SOAPAction headers in HTTP message.
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
Re: setting SOAPAction MimeHeader results in 2 SOAPAction headers in HTTP message.
Posted by Davanum Srinivas <da...@gmail.com>.
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 <er...@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/