Tuesday, July 6, 2010

Writing Web Service with SIwpas in 5 minutes

Writing a web service in 5 minutes with SIwpas! How? Below...

SIwpas uses OpenEJB integration for Web service support, and amazing thing is that you can deploy your EJBs as a WAR archive. Lets start...

1. Create a new Web modules with Eclipse,
2. Code as follows

Web Service Interface

public interface ICalculator
    public int add(int x, int y);

Web Service Implementation

public class CalculatorWs implements ICalculator

    public int add(int x, int y)
        return x+y;


That is it! Deploy it int the SIwpas! Your web service is ready to use at

It is easy, hah!

Download and use SIwpas, http://code.google.com/p/siwpas/

Web Service Example :


No comments: