use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionCoordinatorClient 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 {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + ".sendCancelled");
}
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFaultTo(map, participant, identifier);
BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
port = getPort(endpoint, map, cancelledAction);
NotificationType cancelled = new NotificationType();
port.canceledOperation(cancelled);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionCoordinatorClient 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 {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + ".sendCannotComplete");
}
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
port = getPort(endpoint, map, cannotCompleteAction);
NotificationType cannotComplete = new NotificationType();
port.cannotComplete(cannotComplete);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionCoordinatorClient 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 {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + ".sendExit");
}
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
port = getPort(endpoint, map, exitAction);
NotificationType exit = new NotificationType();
port.exitOperation(exit);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CoordinatorCompletionParticipantClient method sendExited.
/**
* Send an exited 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 sendExited(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFaultTo(map, coordinator, identifier);
BusinessAgreementWithCoordinatorCompletionParticipantPortType port;
port = getPort(endpoint, map, exitedAction);
NotificationType exit = new NotificationType();
port.exitedOperation(exit);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CoordinatorCompletionParticipantClient method sendComplete.
/**
* Send a 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 sendComplete(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFromFaultTo(map, coordinator, identifier);
BusinessAgreementWithCoordinatorCompletionParticipantPortType port;
port = getPort(endpoint, map, completeAction);
NotificationType complete = new NotificationType();
port.completeOperation(complete);
}
Aggregations