Search in sources :

Example 41 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.

the class ParticipantCompletionCoordinatorClient method sendExit.

/**
 * Send an exit 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 sendExit(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".sendExit");
    }
    MAPEndpoint participant = getParticipant(endpoint, map);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
    port = getPort(endpoint, map, exitAction);
    NotificationType exit = new NotificationType();
    port.exitOperation(exit);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) BusinessAgreementWithParticipantCompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionCoordinatorPortType) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType)

Example 42 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType 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);
}
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 43 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.

the class CoordinatorCompletionParticipantClient method sendComplete.

/**
 * Send a complete 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 sendComplete(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, completeAction);
    NotificationType complete = new NotificationType();
    port.completeOperation(complete);
}
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 44 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.

the class CoordinatorCompletionParticipantClient method sendCancel.

/**
 * Send a cancel 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 sendCancel(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, cancelAction);
    NotificationType cancel = new NotificationType();
    port.cancelOperation(cancel);
}
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 45 with NotificationType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType in project narayana by jbosstm.

the class CoordinatorCompletionParticipantClient method sendClose.

/**
 * Send a close 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 sendClose(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, closeAction);
    NotificationType close = new NotificationType();
    port.closeOperation(close);
}
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)

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