A Simple SOAP Web Service Example in Eclipse
Create Basic Web Service
- Create new Dynamic Web Project.
- Create new Java class (call it “DoesMagic”).
- 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: