package pt.iscte.dsi.raides; import java.rmi.RemoteException; import org.apache.axis.client.Stub; import pt.iscte.dsi.raides.ws.EnroledStudentService; import pt.iscte.dsi.raides.ws.EnroledStudentServiceProxy; import pt.iscte.dsi.raides.ws.TblalunosVO; import pt.iscte.dsi.raides.ws.TblalunosdiplomVO; import pt.iscte.dsi.raides.ws.TblalunosidentVO; import pt.iscte.dsi.raides.ws.TblalunosmatricVO; /** * * @author rjmvo * */ public final class EnroledStudentServiceClient implements EnroledStudentService { private static final int TIMEOUT = Integer.MAX_VALUE; private EnroledStudentServiceProxy service; private static final String ENDPOINT = "http://raides.iscte.intranet:8080/raidesservice/EnroledStudentServiceImpl"; public EnroledStudentServiceClient() { service = new EnroledStudentServiceProxy(ENDPOINT); ((Stub) service.getEnroledStudentService()).setTimeout(TIMEOUT); } public boolean createEnroledStudent(TblalunosVO student, TblalunosidentVO studentIdent, TblalunosmatricVO studentRegistration) throws RemoteException { return service.createEnroledStudent(student, studentIdent, studentRegistration); } public boolean createConcludedStudent(TblalunosVO student, TblalunosidentVO studentIdent, TblalunosdiplomVO studentConcluded) throws RemoteException { return service.createConcludedStudent(student, studentIdent, studentConcluded); } }