You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andrew B <vi...@yahoo.com> on 2006/06/29 22:36:48 UTC

Re: [Axis2]setting username and password

I don't seem to have the class HttpTransportProperties.BasicAuthentication in Axis2 1.0. Is it in a later build? Same is true for HTTPConstants.BASIC_AUTHENTICATION.

Also, once these problems are ironed out, how do I set the options object on the client stub?

robert lazarski <ro...@gmail.com> wrote: If your talking about the way call.setPassword etc worked in axis 1.x,
in axis2 it is:

HttpTransportProperties.BasicAuthentication
               basicAuthentication = new HttpTransportProperties().
                   new BasicAuthentication();
           basicAuthentication.setUsername(userName);
           basicAuthentication.setPassword(password);

           options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
                   basicAuthentication);

HTH,
Robert
http://www.braziloutsource.com/

On 6/20/06, Andrew B  wrote:
> Hi,
>
> My Axis1 -> Axis2 migration continues. The issue I have now is with getting
> the username and password within the Axis2 service. Are they now accessible
> via MessageContext.getProperty instead of getUsername() and getPassword()?
> If so, what are the names of the properties?
>
> Thanks
>
>
>  ________________________________
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: [Axis2]setting username and password

Posted by Andrew B <vi...@yahoo.com>.
Actually I just found it - it's called _getServiceClient. Any reason for the underscore?

robert lazarski <ro...@gmail.com> wrote: Forgot to mention - stub has a getServiceClient method.

Robert
http://www.braziloutsource.com/

On 6/29/06, robert lazarski  wrote:
> Seems to be a new class - I recommend updating anyways as there has
> been a lot of bug fixes since 1.0 :
>
> http://people.apache.org/dist/axis2/nightly/
>
> Set your client options like ...
>
>             ServiceClient serviceClient = new ServiceClient();
>
>             Options options = new Options();
> options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
>    basicAuthentication);
>             serviceClient.setOptions(options);
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 6/29/06, Andrew B  wrote:
> > I don't seem to have the class
> > HttpTransportProperties.BasicAuthentication in Axis2 1.0.
> > Is it in a later build? Same is true for
> > HTTPConstants.BASIC_AUTHENTICATION.
> >
> > Also, once these problems are ironed out, how do I set the options object on
> > the client stub?
> >
> > robert lazarski  wrote:
> >  If your talking about the way call.setPassword etc worked in axis 1.x,
> > in axis2 it is:
> >
> > HttpTransportProperties.BasicAuthentication
> >  basicAuthentication = new HttpTransportProperties().
> >  new BasicAuthentication();
> >  basicAuthentication.setUsername(userName);
> >  basicAuthentication.setPassword(password);
> >
> >  options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
> >  basicAuthentication);
> >
> > HTH,
> > Robert
> > http://www.braziloutsource.com/
> >
> > On 6/20/06, Andrew B wrote:
> > > Hi,
> > >
> > > My Axis1 -> Axis2 migration continues. The issue I have now is with
> > getting
> > > the username and password within the Axis2 service. Are they now
> > accessible
> > > via MessageContext.getProperty instead of getUsername() and getPassword()?
> > > If so, what are the names of the properties?
> > >
> > > Thanks
> > >
> > >
> > > ________________________________
> > > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
> >  ________________________________
> > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> > starting at 1�/min.
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: [Axis2]setting username and password

Posted by Andrew B <vi...@yahoo.com>.
Got the latest nightly build. Everything now compiles, but stub has neither a getServiceClient nor setServiceClient method ....

Thanks

robert lazarski <ro...@gmail.com> wrote: Forgot to mention - stub has a getServiceClient method.

Robert
http://www.braziloutsource.com/

On 6/29/06, robert lazarski  wrote:
> Seems to be a new class - I recommend updating anyways as there has
> been a lot of bug fixes since 1.0 :
>
> http://people.apache.org/dist/axis2/nightly/
>
> Set your client options like ...
>
>             ServiceClient serviceClient = new ServiceClient();
>
>             Options options = new Options();
> options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
>    basicAuthentication);
>             serviceClient.setOptions(options);
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 6/29/06, Andrew B  wrote:
> > I don't seem to have the class
> > HttpTransportProperties.BasicAuthentication in Axis2 1.0.
> > Is it in a later build? Same is true for
> > HTTPConstants.BASIC_AUTHENTICATION.
> >
> > Also, once these problems are ironed out, how do I set the options object on
> > the client stub?
> >
> > robert lazarski  wrote:
> >  If your talking about the way call.setPassword etc worked in axis 1.x,
> > in axis2 it is:
> >
> > HttpTransportProperties.BasicAuthentication
> >  basicAuthentication = new HttpTransportProperties().
> >  new BasicAuthentication();
> >  basicAuthentication.setUsername(userName);
> >  basicAuthentication.setPassword(password);
> >
> >  options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
> >  basicAuthentication);
> >
> > HTH,
> > Robert
> > http://www.braziloutsource.com/
> >
> > On 6/20/06, Andrew B wrote:
> > > Hi,
> > >
> > > My Axis1 -> Axis2 migration continues. The issue I have now is with
> > getting
> > > the username and password within the Axis2 service. Are they now
> > accessible
> > > via MessageContext.getProperty instead of getUsername() and getPassword()?
> > > If so, what are the names of the properties?
> > >
> > > Thanks
> > >
> > >
> > > ________________________________
> > > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
> >  ________________________________
> > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> > starting at 1�/min.
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Re: [Axis2]setting username and password

Posted by robert lazarski <ro...@gmail.com>.
Forgot to mention - stub has a getServiceClient method.

Robert
http://www.braziloutsource.com/

On 6/29/06, robert lazarski <ro...@gmail.com> wrote:
> Seems to be a new class - I recommend updating anyways as there has
> been a lot of bug fixes since 1.0 :
>
> http://people.apache.org/dist/axis2/nightly/
>
> Set your client options like ...
>
>             ServiceClient serviceClient = new ServiceClient();
>
>             Options options = new Options();
> options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
>    basicAuthentication);
>             serviceClient.setOptions(options);
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 6/29/06, Andrew B <vi...@yahoo.com> wrote:
> > I don't seem to have the class
> > HttpTransportProperties.BasicAuthentication in Axis2 1.0.
> > Is it in a later build? Same is true for
> > HTTPConstants.BASIC_AUTHENTICATION.
> >
> > Also, once these problems are ironed out, how do I set the options object on
> > the client stub?
> >
> > robert lazarski <ro...@gmail.com> wrote:
> >  If your talking about the way call.setPassword etc worked in axis 1.x,
> > in axis2 it is:
> >
> > HttpTransportProperties.BasicAuthentication
> >  basicAuthentication = new HttpTransportProperties().
> >  new BasicAuthentication();
> >  basicAuthentication.setUsername(userName);
> >  basicAuthentication.setPassword(password);
> >
> >  options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
> >  basicAuthentication);
> >
> > HTH,
> > Robert
> > http://www.braziloutsource.com/
> >
> > On 6/20/06, Andrew B wrote:
> > > Hi,
> > >
> > > My Axis1 -> Axis2 migration continues. The issue I have now is with
> > getting
> > > the username and password within the Axis2 service. Are they now
> > accessible
> > > via MessageContext.getProperty instead of getUsername() and getPassword()?
> > > If so, what are the names of the properties?
> > >
> > > Thanks
> > >
> > >
> > > ________________________________
> > > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
> >  ________________________________
> > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> > starting at 1¢/min.
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2]setting username and password

Posted by robert lazarski <ro...@gmail.com>.
Seems to be a new class - I recommend updating anyways as there has
been a lot of bug fixes since 1.0 :

http://people.apache.org/dist/axis2/nightly/

Set your client options like ...

            ServiceClient serviceClient = new ServiceClient();

            Options options = new Options();
options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
   basicAuthentication);
            serviceClient.setOptions(options);

HTH,
Robert
http://www.braziloutsource.com/

On 6/29/06, Andrew B <vi...@yahoo.com> wrote:
> I don't seem to have the class
> HttpTransportProperties.BasicAuthentication in Axis2 1.0.
> Is it in a later build? Same is true for
> HTTPConstants.BASIC_AUTHENTICATION.
>
> Also, once these problems are ironed out, how do I set the options object on
> the client stub?
>
> robert lazarski <ro...@gmail.com> wrote:
>  If your talking about the way call.setPassword etc worked in axis 1.x,
> in axis2 it is:
>
> HttpTransportProperties.BasicAuthentication
>  basicAuthentication = new HttpTransportProperties().
>  new BasicAuthentication();
>  basicAuthentication.setUsername(userName);
>  basicAuthentication.setPassword(password);
>
>  options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
>  basicAuthentication);
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> On 6/20/06, Andrew B wrote:
> > Hi,
> >
> > My Axis1 -> Axis2 migration continues. The issue I have now is with
> getting
> > the username and password within the Axis2 service. Are they now
> accessible
> > via MessageContext.getProperty instead of getUsername() and getPassword()?
> > If so, what are the names of the properties?
> >
> > Thanks
> >
> >
> > ________________________________
> > Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
>  ________________________________
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1¢/min.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org