This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am facing with some integration of web service with the web application.
First I am just explaining architecture of my application: We have a web application that is running over a Tomcat web server. It has some basic set of operations like insert, search, edit and delete of employee. Now we need to expose those operations as a web service to client. So client can perform those operation from command prompt(run as a script file).
We are using AXIS2 to host those web services.
For that I already write down my request and Response XSD. Also I created WSDL files. by using WSDL2java tool I generated my skeleton's. Now the problem is: My skeleton needs to communicate with the code that is written in the web application. So how I can do it? Means either I used that code as a jar file in service achive file(.aar) and use it. But in this case I am just duplicating my code.Do we have some other alternative in Java? My problem in simple words how and service archive file(.aar) can communicate with the web archive file(.war) in some web server instance that is running in same JVM.
please if possible then give some time to this problem and help me out.