Eclipse Web Services Development
Given we have a WSDL, how do you create stubs (for testing or acutual implementation), and test clients?
Here are my steps:
Pre-req: Eclispse 3.3 with WTP, Apache Tomcat 5.5 with Axis 1.4
1) Create Workspace
2) Add Server instance/resource based on Tomcat 5.5
3) Create empty project and import WSDL
4) Create Dynamic Web Project point at server in #2,
5) right-click on WSDL, select Create Stubs (JavaBeans, deployed as Servlets in Tomcat)
6) Deploys the generated stubs in the Web Project
7) Edit the stub codes in src folder of web project. The code uses XMLBeans
8) Right click on WSDL again and say Test with WS Explorer
9) Use WS Explorer and test each operation. Have a choice of raw XML source or Form
No comments:
Post a Comment