use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient 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 participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, statusAction);
StatusType status = new StatusType();
status.setState(state);
port.statusOperation(status);
}
use of org.jboss.ws.api.addressing.MAPEndpoint 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);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendCompensated.
/**
* Send a compensated 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 sendCompensated(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, compensatedAction);
NotificationType compensated = new NotificationType();
port.compensatedOperation(compensated);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendCompleted.
/**
* Send a 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 sendCompleted(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, completedAction);
NotificationType completed = new NotificationType();
port.completedOperation(completed);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class ParticipantCompletionCoordinatorClient 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 {
if (WSTLogger.logger.isTraceEnabled()) {
WSTLogger.logger.trace(getClass().getSimpleName() + ".sendGetStatus");
}
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFromFaultTo(map, participant, identifier);
BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
port = getPort(endpoint, map, getStatusAction);
NotificationType getStatus = new NotificationType();
port.getStatusOperation(getStatus);
}
Aggregations