package org.jboss.soa.bpel.samples.quickstart.ticket;

import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

/**
 * interface to ticket issuer service
 */
@WebService(name = "TicketIssuer", targetNamespace = "http://jbpm.org/examples/ticket")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface TicketIssuer {

	/**
	 * generate a ticket number, distinct from previous calls
	 */
	@WebMethod(action = "http://jbpm.org/examples/ticket#createTicket")
	@WebResult(name = "ticketNo", partName = "ticketNo")
	public int createTicket();

}
