June 2018
Intermediate to advanced
596 pages
12h 39m
English
All methods declared in our web service implementation class, CourseManagementService, are exposed as web service operations. However, if you want to expose only a limited set of methods from the web service implementation class, then you can use the Java interface. For example, if we want to expose only the getCourses method as a web service operation, then we can create an interface, let's say ICourseManagementService:
package packt.jee.eclipse.ws.soap;
import java.util.List;
import javax.jws.WebService;
@WebService
public interface ICourseManagementService {
public List<Course> getCourses();
}
The implementation class also needs to be annotated with @WebService, with the endpointInterface ...