I am using Axis2 for my webservices creation. I need to validate the received soap request(is it complain with defined xsd schema).
For this I am using Handlers in axis2.
Now my problem is that how can i specify diffrent handlers which are psecific to diffrent webservice calls(in services.xml).
For example for create user i will user a enp as http://localhost:8080/axis2/services/createUser
and for updateUser i will invoke http://localhost:8080/axis2/services/updateUser.
For each invokatioon hadlers must be different.
Can any one give any suggestions on this regards.
Thanks,
Narendra
The common way to do what you describe is to implement a module and then to engage this module(s) in your services.xml. You can see a detailed example here: http://axis.apache.org/axis2/java/core/docs/modules.html The pocess in short is:
Engaging the module in your services.xml is as simple as:
Please note that a module might be engaged per operation. Also note this thread: http://www.mail-archive.com/axis-user@ws.apache.org/msg06058.html
I hope this clears things.
Cheers!