Hi everyone,
I've a simple EchoService and I would like to keep the Password Callback
Handler classes separate for both the client and service. So what I did
was to edit my client.axis2.xml as shown:
<parameter name="OutflowSecurity">
<action>
<items>UsernameToken Timestamp</items>
<user>wsuser</user>
<passwordCallbackClass>
echo.PWHandlerClient
</passwordCallbackClass>
<!--
<passwordType>PasswordText</passwordType>
-->
</action>
</parameter>
And I edited my services.xml as shown:
<parameter name="InflowSecurity">
<action>
<items>UsernameToken Timestamp</items>
<passwordCallbackClass>
echo.PWHandlerServer
</passwordCallbackClass>
</action>
</parameter>
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. 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? Any help would be
appreciated. Cheers.
Regards
--------------
Sanjay Vivek
Web Analyst
Middleware Team
ISS
University of Newcastle Upon Tyne