Friday, February 4, 2011

Create Basic SOAP Web Service using eclipse


A Simple SOAP Web Service Example in Eclipse 
Create Basic Web Service
  1. Create new Dynamic Web Project.
  2. Create new Java class (call it “DoesMagic”).
  3. Add method like this (perhaps):
package shl.com.util;

public class Maths {
                public String shailSays(String about){
                                return "There is some thing like: "+ about;
                }
}

4.      Right click on class you just made, New -> Other -> Web Services -> Web Service, you should get a form like the one below: