Ruchith,

Thanks for your reply. I checked out the sample that you were
referring to. From studying the sample I could infer that I have to do
the following:

First, about my architecture:


Web client (browser) calls web app ----> web app (war) calls web
service ---> Axis Service

My requirement is to be able to pass in the user credentials (can
change on every call) from the web app to the web service. For now,
all that I need is user authentication based on the WS-Security
usernametoken.

From your example, I understand that I have to create a Password
callback class and initialize the user name and password in this
class. Do you think I am on the right track here? Also, how should I
be configuring the client repository in my web app?







On 5/10/06, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
Please have a look at the "security" sample available in the
"samples/security" directory of  std-bin distribution.

The samples/security/client_repo/conf/axis2.xml file contains the
client's configuration and the service's configuration is in the
services.xml file available in the META-INF dir of the
SecureService.aar

Thanks,
Ruchith

On 5/10/06, Arjuna Chala <[EMAIL PROTECTED]> wrote:
> I am having a hard time understanding the client configuration for creating
> a WS-Security header for a web service stub call.  Can somebody please point
> me to a place where I can find a concrete example of how to create a client
> stub that is ws-security enabled.

Reply via email to