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!!";
}
}
Next
public static void main(String[] args) throws Exception{
AxisServer server = new AxisServer();
server.deployService(MyService.class.getName());
}
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:
:) Awesome!
Now it needs to be able to take the class as a direct argument, or even a given instance to use....
Post a Comment