use of org.orcid.jaxb.model.notification_v2.NotificationType in project narayana by jbosstm.
the class CoordinatorCompletionParticipantClient method sendNotCompleted.
/**
* 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 sendNotCompleted(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, notCompletedAction);
NotificationType notCompleted = new NotificationType();
port.notCompleted(notCompleted);
}
use of org.orcid.jaxb.model.notification_v2.NotificationType in project narayana by jbosstm.
the class CoordinatorCompletionParticipantClient 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);
BusinessAgreementWithCoordinatorCompletionParticipantPortType port;
port = getPort(endpoint, map, compensateAction);
NotificationType compensate = new NotificationType();
port.compensateOperation(compensate);
}
use of org.orcid.jaxb.model.notification_v2.NotificationType 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.orcid.jaxb.model.notification_v2.NotificationType 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.orcid.jaxb.model.notification_v2.NotificationType 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);
}
Aggregations