user1688466
user1688466

Reputation: 11

Creating an axis2 module that intercept soap data

I have already created a module that is an extension of axis2 and I want this module doing a simple operation like addition for example. What sould I do to intercept the treatment of the web service (obtain the ws data) and do the operation of addition inside the handler.

Upvotes: 1

Views: 1998

Answers (1)

ashish behl
ashish behl

Reputation: 339

Please go through the following article, this provided a step by step guide for creating an axis2 module to intercept SOAP data. http://www.packtpub.com/article/apache-axis2-web-services-writing-module

you need to write your class that extends AbstractHandler and implements Handler. then you need to override the invoke method where you would be able to get the SOAP context. You can do whatever you want with this SOAP context.

Oh, and you also have to define your module in the module.xml configuration.

Upvotes: 2

Related Questions