use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.
the class BusinessAgreementWithParticipantCompletionCoordinatorPortTypeImpl method cannotComplete.
/**
* @param parameters
*/
@WebMethod(operationName = "CannotComplete", action = "http://docs.oasis-open.org/ws-tx/wsba/2006/06/CannotComplete")
@Oneway
@Action(input = "http://docs.oasis-open.org/ws-tx/wsba/2006/06/CannotComplete")
public void cannotComplete(@WebParam(name = "CannotComplete", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsba/2006/06", partName = "parameters") NotificationType parameters) {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + ".cannotComplete");
}
MessageContext ctx = webServiceCtx.getMessageContext();
final NotificationType cannotComplete = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
ParticipantCompletionCoordinatorProcessor.getProcessor().cannotComplete(cannotComplete, inboundMap, arjunaContext);
}
});
}
use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendCannotComplete.
/**
* Send a cannot complete 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 sendCannotComplete(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, cannotCompleteAction);
NotificationType cannotComplete = new NotificationType();
port.cannotComplete(cannotComplete);
}
use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendExit.
/**
* Send an exit 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 sendExit(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, exitAction);
NotificationType exited = new NotificationType();
port.exitOperation(exited);
}
use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendGetStatus.
/**
* Send a get status 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 sendGetStatus(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, getStatusAction);
NotificationType getStatus = new NotificationType();
port.getStatusOperation(getStatus);
}
use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendCancelled.
/**
* Send a cancelled 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 sendCancelled(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFaultTo(map, participant, identifier);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, cancelledAction);
NotificationType camcelled = new NotificationType();
port.canceledOperation(camcelled);
}
Aggregations