Java Reference
In-Depth Information
public interface TicketSOAPServiceItf {
public List<Seat> getSeats();
public boolean bookSeat(int seatId);
}
We will now implement the interface by providing the business logic to the interface
methods in the TicketSOAPService class:
package
com.packtpub.as7development.chapter8.webservice;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.jws.*;
import
com.packtpub.as7development.chapter8.ejb.TheatreBox;
import
com.packtpub.as7development.chapter8.exception.*;
import
com.packtpub.as7development.chapter8.model.Seat;
import
com.packtpub.as7development.chapter8.producer.*;
@WebService(targetNamespace =
"http://www.packtpub.com/", serviceName =
"TicketWebService")
public class TicketSOAPService implements
TicketSOAPServiceItf, Serializable {
@Inject TheatreBox theatreBox;
@Inject TheatreInfoBean infoBean;
@WebMethod
@WebResult(name="listSeats")
Search WWH ::




Custom Search