One way to do it:
1. Add the Axis Servlet to web.xml
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class> org.apache.axis2.transport.http.AxisServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
2. Create (or generate) WSDL that describes the service you plan to implement
3. Use the Axis2 wsdltojava tool to create the service skeleton, message
receiver, and services.xml files. Here's a reference for the tool:
http://wso2.org/library/tutorials/reference-guide-axis2-code-generation-parameters-part-1
4. Create a service folder structure under WEB-INF
WEB-INF
Services
ServiceName
META-INF
6. Add the WSDL and services.xml files to the META-INF folder in the newly
created folder structure
7. Add the service skeleton and message receiver classes to your project
8. Add code to the service skeleton to make it do what you want
9. Add axis2 jars to the library path of your application. You will definitely
need
axis2-kernel. You might need others.
________________________________
From: Hu, Mary - ITG [mailto:[email protected]]
Sent: Wednesday, May 06, 2009 1:28 PM
To: [email protected]
Subject: Newbie question: how to plug axis2 engine into existing web
application running in weblogic
Hi,
I have a web application running in weblogic server. Now I get requirement to
expose the server side as a web service so that some user can skip the GUI part
and directly interact with this app via web service.
I'm going to use axis2 as engine. I don't see any document about to plug the
engine into an existing app. Any suggestions would be appreciated.
Thanks,
Mary Hu
________________________________
This email is confidential and subject to important disclaimers and conditions
including on offers for the purchase or sale of securities, accuracy and
completeness of information, viruses, confidentiality, legal privilege, and
legal entity disclaimers, available at
http://www.jpmorgan.com/pages/disclosures/email.
________________________________
STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at [email protected],
and destroy all copies of this message and any attachments.