axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erich Oliphant" <eri...@vantixweb.com>
Subject setting SOAPAction MimeHeader results in 2 SOAPAction headers in HTTP message.
Date Thu, 02 Sep 2004 17:32:41 GMT
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



Mime
View raw message