use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionParticipantClient method sendNotCompleted.
/**
* Send a not completed 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 sendNotCompleted(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFaultTo(map, coordinator, identifier);
BusinessAgreementWithParticipantCompletionParticipantPortType port;
port = getPort(endpoint, map, notCompletedAction);
NotificationType notCompleted = new NotificationType();
port.notCompleted(notCompleted);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionParticipantClient 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 coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFromFaultTo(map, coordinator, identifier);
BusinessAgreementWithParticipantCompletionParticipantPortType port;
port = getPort(endpoint, map, getStatusAction);
NotificationType getStatus = new NotificationType();
port.getStatusOperation(getStatus);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionParticipantClient method sendFailed.
/**
* Send a failed 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 sendFailed(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFaultTo(map, coordinator, identifier);
BusinessAgreementWithParticipantCompletionParticipantPortType port;
port = getPort(endpoint, map, failedAction);
NotificationType failed = new NotificationType();
port.failedOperation(failed);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionParticipantClient method sendCompensate.
/**
* Send a compensate 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 sendCompensate(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFromFaultTo(map, coordinator, identifier);
BusinessAgreementWithParticipantCompletionParticipantPortType port;
port = getPort(endpoint, map, compensateAction);
NotificationType compensate = new NotificationType();
port.compensateOperation(compensate);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendFail.
/**
* Address
* Send a fail 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 sendFail(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier, final QName exceptionIdentifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, failAction);
ExceptionType fail = new ExceptionType();
fail.setExceptionIdentifier(exceptionIdentifier);
port.failOperation(fail);
}
Aggregations