Friday, June 15, 2007

How easy to invoke and deploy a service in Axis2

Isn't that a cool to start an Axis2 server and deploy a service in only two steps , yes it is cool ,

Try this out.

Say you have a service class called , MyService as follows,

public class MyService {

public String helloWord(){

return "HelloWord!!";




public static void main(String[] args) throws Exception{

AxisServer server = new AxisServer();



Next go and browse “http://localhost:6060/axis2/services/MyService/helloWord” and see what you are getting.


See how simple to create and invoke a service in Axis2 !!!!

1 comment:

Glen said...

:) Awesome!

Now it needs to be able to take the class as a direct argument, or even a given instance to use....