-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Charak,
HttpTransportProperties.BasicAuthentication basicAuth = new HttpTransportProperties.BasicAuthentication(); messageContext.getProperty(HTTPConstants.BASIC_AUTHENTICATION); This is a client side setting. In server side, if the transport is http/https and if the client is tuned to basic auth, the server will get the "Authorization: Basic [base64stuff] HTTP header. Thus, you may have to write your own handler to extract the username and password from this. You can write it as follows, http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx Saminda Charak, Vikas wrote: > This worked. > But now I want to access these set values in my service. > I am doing following: > MessageContext messageContext = new MessageContext(); > HttpTransportProperties.BasicAuthentication basicAuth = > (HttpTransportProperties.BasicAuthentication) > messageContext.getProperty(HTTPConstants.BASIC_AUTHENTICATION); > > System.out.println("User Name.getUsername()==="+ > basicAuth.getUsername()); > > > messageContext.getProperty(HTTPConstants.BASIC_AUTHENTICATION)) returns > NULL. > > Even messageContext.getProperties MAP is also empty. > > Am I missing something? > > > -----Original Message----- > From: Saminda Abeyruwan [mailto:[EMAIL PROTECTED] > Sent: Monday, August 21, 2006 1:10 PM > To: [email protected] > Subject: Re: [Axis2] BasicAuthentication Issue > > > Hi, > > It's, > > HttpTransportProperties.BasicAuthentication basicAuth = new > HttpTransportProperties.BasicAuthentication(); > > BasicAuthentication() inner class is static now. > > > Saminda > > >>>Hi, >>> >>>I am trying to send user name and password from Client to a deployed >>>service. I downloaded nightly build also but following doesn't seem to >>>compile >>> >>>HttpTransportProperties.BasicAuthentication basicAuth = new >>>HttpTransportProperties().new BasicAuthentication(); >>> >>>The compiler can find the class HttpTransportProperties() but not >>>BasicAuthentication(). >>> >>>Any one has idea. >>> >>> >>> >>> >>> >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> > > - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFE6rFoYmklbLuW6wYRAqpCAJ4s3l07iZoL9qMDwuHah4qOtAqLEwCgnhlj t4VRsoS9vS3R7Z2t7On9AU4= =uWTi -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
