use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType in project narayana by jbosstm.
the class TerminationCoordinatorRPCPortTypeImpl method cancelOperation.
@WebResult(name = "Cancelled", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx", partName = "parameters")
@WebMethod(operationName = "CancelOperation", action = "http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel")
public NotificationType cancelOperation(@WebParam(partName = "parameters", name = "Cancel", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx") NotificationType parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
final NotificationType cancel = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TerminationCoordinatorRPCProcessor.getProcessor().cancel(cancel, inboundMap, arjunaContext);
return new NotificationType();
}
use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType in project narayana by jbosstm.
the class TerminationParticipantClient method sendClosed.
/**
* Send a closed request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendClosed(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(participant);
AddressingHelper.installFromFaultTo(map, coordinator, identifier);
final TerminationParticipantPortType port = getPort(participant, map, identifier, closedAction);
final NotificationType closed = new NotificationType();
port.closedOperation(closed);
}
use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType in project narayana by jbosstm.
the class TerminationCoordinatorPortTypeImpl method cancelOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "CancelOperation", action = "http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel")
@Oneway
public void cancelOperation(@WebParam(name = "Cancel", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx", partName = "parameters") NotificationType parameters) {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + ".cancelOperation");
}
MessageContext ctx = webServiceCtx.getMessageContext();
final NotificationType cancel = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
TerminationCoordinatorProcessor.getProcessor().cancel(cancel, inboundMap, arjunaContext);
}
});
}
use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType in project narayana by jbosstm.
the class TerminationCoordinatorPortTypeImpl method completeOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "CompleteOperation", action = "http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete")
@Oneway
public void completeOperation(@WebParam(name = "Complete", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx", partName = "parameters") NotificationType parameters) {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + " constructor");
}
MessageContext ctx = webServiceCtx.getMessageContext();
HttpServletRequest request = (HttpServletRequest) ctx.get(MessageContext.SERVLET_REQUEST);
final NotificationType complete = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
TerminationCoordinatorProcessor.getProcessor().complete(complete, inboundMap, arjunaContext);
}
});
}
use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType in project narayana by jbosstm.
the class TerminationParticipantPortTypeImpl method cancelledOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "CancelledOperation", action = "http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancelled")
@Oneway
public void cancelledOperation(@WebParam(name = "Cancelled", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx", partName = "parameters") NotificationType parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
final NotificationType cancelled = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
TerminationParticipantProcessor.getProcessor().handleCancelled(cancelled, inboundMap, arjunaContext);
}
});
}
Aggregations