Tuesday, November 2, 2010

Building Java Web Services with Axis2 and Eclipse

I was working on middle-ware integration with wso2 and axis2 web services since last couple of months. In this post, I will show how to get started with axis2 development and deployment using Eclipse IDE.
  1. If you are not having an Eclipse IDE, I am using helios
  2. If you are already having Eclipse IDE. make sure you have WTP Plugin installed.
  3. Create a new workspace in eclipse
  4. Download and install any version of apache tomcat (I'm using tomcat 5.5). If you are having troubles configuring it on your machine, you can locate to apache tomcat help for installation here
  5. Add apache tomcat server to your Eclipse IDE, and here is how you can do it.
  6. Get Axis2
    Download latest source of Axis2 from here
  7. See Anil John's this article for properly configuring axis2 and related environment variables.
  8. Once you are done with step 7, you can start integrating axis2 with Eclipse IDE by using this article at eclipse WTP Tutorials.
  9. For deploying axis2 plugin using .aar package, donwload Apache Axis2 Archive plugin
  10. Extract the zip file of Apache Axis2 Archive plugin and copy the folder having plugin.xml and paste it to plugins folder of your eclipse installation root directory
  11. You are done with the configuration and ready to create a new web service. See this tutorial on eclipse WTP tutorials to create a new axis2 service.
I am a .net developer, and successfully created and deployed the services created using Eclipse IDE to wso2 wsas.I have done this using windows xp, apache tomcat 5.5, axis2 1.5 and wso2 wsas 3.0.0. I hope this post will be helpful to you and will save your time to get started with axis2 development.
I will try to share my experience of working with wso2 wsas and wso2 esb with you in upcoming posts.

No comments:

Post a Comment

Please add your valuable comments about this post if it helped you. Thanks