Search in sources :

Example 1 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.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);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithCoordinatorCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType)

Example 2 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.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);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithCoordinatorCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType)

Example 3 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.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);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Example 4 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.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);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Example 5 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.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);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Aggregations

NotificationType (org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType)58 Task (com.arjuna.services.framework.task.Task)29 ArjunaContext (com.arjuna.webservices11.wsarj.ArjunaContext)29 Action (javax.xml.ws.Action)29 MessageContext (javax.xml.ws.handler.MessageContext)29 MAP (org.jboss.ws.api.addressing.MAP)29 MAPEndpoint (org.jboss.ws.api.addressing.MAPEndpoint)29 BusinessAgreementWithCoordinatorCompletionParticipantPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType)8 BusinessAgreementWithCoordinatorCompletionCoordinatorPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionCoordinatorPortType)7 BusinessAgreementWithParticipantCompletionCoordinatorPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionCoordinatorPortType)7 BusinessAgreementWithParticipantCompletionParticipantPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)7