Now the client, needs to pass header information to this service with the user credentials. Only if the user is valid the service call should succeed. Otherwise a fault should be raised.
To add information to header (in the request), I have created the following handler-chain.xml
and the following handler on the client side
but this header is not getting called. Seems it is not able to locate the handler-chain.xml
Can someone please let me know how to correct this.
shivendra tripathi wrote:Anjali,
You are not using axis2 handler. To qualify as asix2 handler either you have to extend and AbstactHandler or implement handler. And then you need to register it in axis2.config(inside phase) to make sure it's getting picked.
Where can I find the axis2.config file? Are you referring to Axis2.xml
If you are referring to Axis2.xml, then under which phase should I put my handler.
This is my handler.
Changes done in axis2.xml
Following is my soap envelope