1. Create the Java class with methods you want to be converted as web service
2. Add a WebService annotation to the class
3. Add WebMethod annotation to the web service method. This is optional. All public methods of the web service class are automatically considered a web service method.
Example:
@WebService public class BookStore{ @WebMethod public List<String> getBookNames() { } }This will create a web service class called BookStoreService.
No comments:
Post a Comment