The purpose of this article, by Saminda Abeyruwan, is to provide in depth understanding of Spring integration in WSO2 WSAS and to discuss how to expose an existing POJO driven application as a Web service.
Content
- Introduction [0]
- Applies To [0]
- Web service creation [0]
- WSO2 WSAS and Axis2 [0]
- Programming Flow [0]
- Parameter @name="ServiceObjectSupplier" [0]
- Spring integration in WSAS [0]
- WSAS in action [0]
- Analyzing the sample [0]
- Axis2 Spring support [0]
- Conclusion [0]
- Reference [0]
5 [1]]. Hence, the developer will be equipped with all the Axis2 features.
Before going any further, you need to set up WSAS in your development arena. If you have not already download WSAS, you can download it from the WSAS Downloads page [6 [2]]. Once WSAS has been downloaded, follow these steps to start WSAS.
Linux :
unzip wso2wsas-2.1.zip
cd wso2wsas-2.1/bin
./wso2wsas.sh
MS Windows :
<unzip> wso2wsas-2.1.zip
cd wso2wsas-2.1/bin
wso2wsas.bat
Code Listing 1: Starting WSAS in a Linux/MS Windows Environment
4 [3]].

Figure 3: Uploading the Spring Configuration File and its beans jar
(4). Select the bean you want to expose as a Web Service
Figure 4: Selecting Spring Beans to be Exposed as Web services
(5). Now you will be able to see the deployed service after approximately 10 seconds.

Figure 6: Loaded Spring Bean.
(6). Click "calculator", then "Try it" and then try the new Web service.
3 [4]].
http://www.theserverside.com/tt/articles/article.tss?l=SpringFramework [5]
[2]. http://www.devx.com/Java/Article/33839/0/page/1" [6]
[3]. http://ws.apache.org/axis2/1_3/spring.html" [7]
[4]. http://ww2.wso2.org/~saminda/spring/" [8]
[5]. http://wso2.org/project/wsas/java/2.1/docs/release_notes.html" [9]
[6]. http://dist.wso2.org/products/wsas/java/2.1/" [10]
[7]. http://www.theserverside.com/tt/articles/article.tss?l=IntrotoSpring25" [11]
[8]. WSO2 WSAS How To Series [12]
Author
http://www.theserverside.com/tt/articles/article.tss?l=SpringFramework [5]
[2]. http://www.devx.com/Java/Article/33839/0/page/1" [6]
[3]. http://ws.apache.org/axis2/1_3/spring.html" [7]
[4]. http://ww2.wso2.org/~saminda/spring/" [8]
[5]. http://wso2.org/project/wsas/java/2.1/docs/release_notes.html" [9]
[6]. http://dist.wso2.org/products/wsas/java/2.1/" [10]
[7]. http://www.theserverside.com/tt/articles/article.tss?l=IntrotoSpring25" [11]
[8]. WSO2 WSAS How To Series [12]
Author
Saminda Abeyruwan, Senior Software Engineer, WSO2 Inc. saminda at wso2 dot com