aassif wrote:
> 
> I have one query regarding Basic Authentication. I Axis 1.X, when we use
> Call.setUserName() or call.setPassword(), the details are encoded and sent
> to the server as HTTP Headers and which can be seen through TCP monitor.
> The username and password can be retrieved in the Web Service Handler or
> Web Service implementation through Message Context.  In the case of Axis2
> I can't see and difference in the SOAP request with or without BASIC
> Authentication.
> 

I just tested TCPMon for my own setup, and verified that an "Authorization:
Basic (...)" header was generated and sent. While the Soap Envelope is not
different, the HTTP headers should be.


aassif wrote:
> 
> I am not creating ServiceClient from scratch rather I am using the Stub
> generated as result of WSDL2Java and then from the stub I am retrieving
> the ServiceClient and Options. But I don't think this should make any
> difference. I believe it has more to do with my poor understanding of
> Basic Authentication in Axis2. 
> 
> Question is how I can send username and password to the Web Service as
> HTTP Header rather than SOAP Header in Axis2 similar to Axis 1.X. Reason I
> am looking for this functionality is for back compatibility.
> 

If you are using code parallell to what I suggested, you are sending the
authorization data as a HTTP (Authorization:) header. If no Authorization
header is present among the HTTP headers, I'd suspect the ServiceClient used
by the stub was not configured correctly... 

Like you, I think that your retrieving the ServiceClient and Options from
the stub should not make any significant difference. From what I understood,
that was the same approach Belunek Karel was (successfully) using.


Sincerely,

  Geir
-- 
View this message in context: 
http://www.nabble.com/AXIS2-1.1.1-problem-with-BASIC-AUTH-tf3559184.html#a10138964
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to