use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType 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.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType in project narayana by jbosstm.
the class CoordinatorCompletionParticipantClient method sendStatus.
/**
* Send a 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 sendStatus(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier, final QName state) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFromFaultTo(map, coordinator, identifier);
BusinessAgreementWithCoordinatorCompletionParticipantPortType port;
port = getPort(endpoint, map, statusAction);
StatusType status = new StatusType();
status.setState(state);
port.statusOperation(status);
}
use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType in project narayana by jbosstm.
the class CoordinatorCompletionParticipantClient method sendSoapFault.
/**
* send a soap fault
* @param soapFault the fault to be sent
* @param endpoint the endpoint to send the fault to
* @param map addressing context to be used to send the fault
* @param faultAction the action to associate with the message
*/
public void sendSoapFault(SoapFault11 soapFault, W3CEndpointReference endpoint, MAP map, String faultAction) throws SoapFault, IOException {
AddressingHelper.installNoneReplyTo(map);
map.setAction(faultAction);
BusinessAgreementWithCoordinatorCompletionParticipantPortType port;
port = getPort(endpoint, map, faultAction);
Fault fault = ((SoapFault11) soapFault).toFault();
port.soapFault(fault);
}
use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType 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.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType 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);
}
Aggregations