|
I am not exactly sure how to do it with
the 1.0 release, but with the nightlies this is how I did it: Authenticator authenticator = new Authenticator(); List
auth = new ArrayList(); auth.add(Authenticator.BASIC); authenticator.setAuthSchemes(auth); authenticator.setUsername(username); authenticator.setPassword(password); Options
options = new Options(); options.setProperty(HTTPConstants.AUTHENTICATE,
authenticator); It seems to work J Otherwise look at this article: http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters#BASIC_AUTHENTICATION Not sure if that is the 1.0 release or not Roshan
Punnoose Phone: 301-497-6039 From: Charak, Vikas
[mailto:[EMAIL PROTECTED] Mark, I guess this class has undergone few
changes in nightilies. I guess Axis2 designers can answer your question if they
are reading this email. From: Mark McCall
[mailto:[EMAIL PROTECTED] I looked in org.apache.axis2.transport.http and I do
not see HttpTransportProperties.BasicAuthentication. I did find
HttpTransportProperties.Authenticator, but I am not entirely sure how to use
it. Assuming I am to create an instance of
HttpTransportProperties.Authenticator and set the username and password values,
then what do I do with that instance? As per my original question, is it possible to do
this with the 1.0 release? While I understand the 1.0 release is
undergoing many bug fixes right now, the client libraries have been working
quite well for us and we are a little apprehensive to switch to something that
is undergoing change on a daily basis. Thanks, Mark From: Charak, Vikas
[mailto:[EMAIL PROTECTED] I guess look in to
MessageContext and HttpTransportProperties.BasicAuthentication in nightly
builds. From: Mark McCall
[mailto:[EMAIL PROTECTED] OK – I guess the resounding silence
means “no”. Is there a way to do this WITH the nightly
builds? Thanks, Mark From: Mark McCall I have not found any documentation or samples showing how to
programmatically set Basic Auth information in an Axis2 generated client.
I am using the 1.0 release, not the nightly builds. Can somebody point me
in the right direction? Thanks, Mark
|
BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
