There is a web application. It runs on Apache Tomcat 5.5. Now the requirement is I have to integrate a module in it that will behave as a web service and keeping this web application intact i.e. there will be two parts of this web application one act as SOAP web service and other as a web application.
I have tried this by integrating AXIS2 inside web application. I have included axis2 jars in the existing web project and generate the .aar file. The web application contains the axis2 engine in itself. I have deployed the web project as a war in Tomcat and run the project.
My application is running and web service is listening at its endpoint.
Below is the directory structure of the project:
My question is how the web service module(.aar) and web application module can communicate with each other?