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