W3C home > Mailing lists > Public > xml-dist-app@w3.org > May 2007

Problem with saaj implementation

From: Tubman, Olga <olga.tubman@hp.com>
Date: Sun, 06 May 2007 08:19:47 +0000
Message-ID: <1038E8469F565B4D99BE51B21F6B83B9030A8112@raaexc02.emea.cpqcorp.net>
To: <xml-dist-app@w3.org>


I have a question about using Axis2 saaj implementation.

I need to add Authorization and SoapAction to the message.

In the sun implementation I do it with adding headers to the



             byte[] authorization = Base64.encode(

             MimeHeaders hd = message.getMimeHeaders();

              hd.addHeader("Authorization", "Basic " + new

              hd.addHeader("SOAPAction", "RetrieveKeysList");


However, in the Axis2 implementation this code is not working and I get
org.apache.axis2.AxisFault: HTTP Transport error : '401' -
'Unauthorized' exception.

Moreover, I checked the source code and saw that nobody access to the
MimeHeaders in the message.


Can you please help me and tell me how I can do it in Axis2?


Thank you,


Received on Sunday, 6 May 2007 15:55:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:30 UTC