use of javax.jws.WebMethod in project trainning by fernandotomasio.
the class SGCAuthService method createTurmaEfetiva.
/**
* This is a sample web service operation
*
* @param cursoId
* @param organizacaoGestoraId
* @param organizacaoResponsavelId
* @param numeroTurma
* @param quantidadeVagas
* @param inicioIndicacoes
* @param terminoIndicacoes
* @param fases
* @return
*/
@WebMethod(operationName = "createTurmaEfetiva")
public Long createTurmaEfetiva(@WebParam(name = "cursoId") Long cursoId, @WebParam(name = "organizacaoGestoraId") Long organizacaoGestoraId, @WebParam(name = "organizacaoResponsavelId") Long organizacaoResponsavelId, @WebParam(name = "numeroTurma") Integer numeroTurma, @WebParam(name = "quantidadeVagas") Integer quantidadeVagas, @WebParam(name = "inicioIndicacoes") Date inicioIndicacoes, @WebParam(name = "terminoIndicacoes") Date terminoIndicacoes, @WebParam(name = "fases") FaseDTO[] fases) {
TurmaEfetivaDTO turma = new TurmaEfetivaDTO();
CursoDTO curso = trainningService.findCurso(cursoId);
turma.setCurso(curso);
turma.setOrganizacaoGestoraId(organizacaoGestoraId);
turma.setResponsavelId(organizacaoResponsavelId);
turma.setNumeroTurma(numeroTurma);
PeriodoDTO periodoIndicacoes = new PeriodoDTO();
periodoIndicacoes.setDataInicio(inicioIndicacoes);
periodoIndicacoes.setDataTermino(terminoIndicacoes);
turma.setPeriodoIndicacao(periodoIndicacoes);
turma.setFases(fases);
return trainningService.createCurso(curso);
}
use of javax.jws.WebMethod in project narayana by jbosstm.
the class InitiatorPortTypeImpl method response.
/**
*/
@WebMethod(operationName = "Response", action = "http://www.wstf.org/docs/scenarios/sc007/Response")
@Oneway
@Action(input = "http://www.wstf.org/docs/scenarios/sc007/Response")
@RequestWrapper(localName = "Response", targetNamespace = "http://www.wstf.org/sc007", className = "com.jboss.transaction.wstf.webservices.sc007.generated.TestMessageType")
public void response() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
InitiatorProcessor.getInitiator().handleResponse(inboundMap);
}
use of javax.jws.WebMethod in project narayana by jbosstm.
the class InitiatorPortTypeImpl method response.
/**
*/
@WebMethod(operationName = "Response", action = "http://fabrikam123.com/Response")
@Oneway
@Action(input = "http://fabrikam123.com/Response")
@RequestWrapper(localName = "Response", targetNamespace = "http://fabrikam123.com", className = "com.jboss.transaction.txinterop.webservices.atinterop.generated.TestMessageType")
public void response() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
ATInitiatorProcessor.getInitiator().handleResponse(inboundMap);
}
use of javax.jws.WebMethod in project narayana by jbosstm.
the class TestServiceImpl method enlistXAResource.
@WebMethod(exclude = true)
public void enlistXAResource(int count) {
TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
try {
for (int i = 0; i < count; i++) {
TestXAResource testXAResource = new TestXAResource();
tm.getTransaction().enlistResource(testXAResource);
}
} catch (Exception e) {
log.error("could not enlist", e);
}
}
use of javax.jws.WebMethod in project ART-TIME by Artezio.
the class IntegrationFacade method getAllSubprojects.
@WebMethod
@WebResult(name = "subprojects")
public List<Project> getAllSubprojects(@WebParam(name = "masterProjectCode") String masterProjectCode) {
Project rootProject = projectRepository.findProject(masterProjectCode);
List<Project> projects = projectService.getSubprojectsByProject(rootProject);
projects.remove(rootProject);
return projects;
}
Aggregations