axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: Client Authentication
Date Thu, 12 Jun 2003 18:55:55 GMT
org.apache.axis.client.Stub has setUsername and setPassword that you can use. you will need
to
typecast the interface that you get from the locator to org.apache.axis.client.Stub .

-- dims

--- Boby boby <boby_onebox@hotmail.com> wrote:
> Hi,
>       I was going through the mailing list but couldn’t find the solution 
> for my problem so thought of sending a message to the list.
> 
> I am using ‘wsdl2java’ tool to generate java client for invoking 
> web-services. Web-services requires basic HTTP authentication to 
> authenticate clients. If I put these two lines of code before invoke, it 
> works fine.
> 
> call.setUsername("username");
> call.setPassword("password");
> 
> I don’t want to edit the auto-generated code from tool ‘wsdl2java’. So is 
> there any way to set the authentication parameter somewhere else instead of 
> putting in the auto-generated code.
> 
> Any help will be highly appreciated.
> 
> Thanks,
> Mudit
> 
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

Mime
View raw message