Hi Sanjay, How does client.axis2.xml know where to look for the PWHandlerClient > class? I put both the PWHandlerClient and PWHandlerServer classes in my > EchoService.aar.
Client's password callback class need to be in client's classpath. So putting both in the EchoService.aar doesn't seems the proper solution. Service's callback can be in EchoService.aar or if you want it to be separate it from the service you can put it in the lib directory. > However, I'm getting the following exception when I > attempt to invoke the service: > > Exception in thread "main" org.apache.axis2.AxisFault: WSHandler: cannot > load password callback class: echo.PWCBHandlerClient; > Where should I put the PWHandlerClient class? I think the exception is quite correct if the password callback class is not in the client's classpath. You should put the client's password callback in the client's claspath. But you can even set the username and password using the service client's API in the client code. Regards, Nandana
