Search in sources :

Example 21 with MAPEndpoint

use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.

the class CoordinatorCompletionCoordinatorClient method sendClosed.

/**
 * Send a closed 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 sendClosed(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, closedAction);
    NotificationType closed = new NotificationType();
    port.closedOperation(closed);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithCoordinatorCompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionCoordinatorPortType)

Example 22 with MAPEndpoint

use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.

the class ParticipantCompletionCoordinatorClient method sendClosed.

/**
 * Send a closed 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 sendClosed(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".sendClosed");
    }
    MAPEndpoint participant = getParticipant(endpoint, map);
    AddressingHelper.installFaultTo(map, participant, identifier);
    BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
    port = getPort(endpoint, map, closedAction);
    NotificationType closed = new NotificationType();
    port.closedOperation(closed);
}
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 23 with MAPEndpoint

use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.

the class ParticipantCompletionCoordinatorClient method sendFail.

/**
 * Send a fault 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 sendFail(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier, final QName exceptionIdentifier) throws SoapFault, IOException {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".sendFail");
    }
    MAPEndpoint participant = getParticipant(endpoint, map);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
    port = getPort(endpoint, map, failAction);
    ExceptionType fail = new ExceptionType();
    fail.setExceptionIdentifier(exceptionIdentifier);
    port.failOperation(fail);
}
Also used : ExceptionType(org.oasis_open.docs.ws_tx.wsba._2006._06.ExceptionType) MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) BusinessAgreementWithParticipantCompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionCoordinatorPortType)

Example 24 with MAPEndpoint

use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.

the class ParticipantCompletionCoordinatorClient 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 {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".sendCompensated");
    }
    MAPEndpoint participant = getParticipant(endpoint, map);
    AddressingHelper.installFaultTo(map, participant, identifier);
    BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
    port = getPort(endpoint, map, compensatedAction);
    NotificationType compensated = new NotificationType();
    port.compensatedOperation(compensated);
}
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 25 with MAPEndpoint

use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.

the class ParticipantCompletionCoordinatorClient 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 {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".sendStatus");
    }
    MAPEndpoint participant = getParticipant(endpoint, map);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    BusinessAgreementWithParticipantCompletionCoordinatorPortType port;
    port = getPort(endpoint, map, statusAction);
    StatusType status = new StatusType();
    status.setState(state);
    port.statusOperation(status);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) BusinessAgreementWithParticipantCompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionCoordinatorPortType) StatusType(org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType)

Aggregations

MAPEndpoint (org.jboss.ws.api.addressing.MAPEndpoint)55 NotificationType (org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType)29 Notification (org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)11 BusinessAgreementWithCoordinatorCompletionCoordinatorPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionCoordinatorPortType)9 BusinessAgreementWithCoordinatorCompletionParticipantPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionParticipantPortType)9 BusinessAgreementWithParticipantCompletionCoordinatorPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionCoordinatorPortType)9 BusinessAgreementWithParticipantCompletionParticipantPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)8 NotificationType (com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)7 TerminationParticipantPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationParticipantPortType)4 CoordinatorPortType (org.oasis_open.docs.ws_tx.wsat._2006._06.CoordinatorPortType)4 StatusType (org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType)4 TerminationCoordinatorPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorPortType)3 ParticipantPortType (org.oasis_open.docs.ws_tx.wsat._2006._06.ParticipantPortType)3 MAP (org.jboss.ws.api.addressing.MAP)2 MAPBuilder (org.jboss.ws.api.addressing.MAPBuilder)2 CompletionCoordinatorPortType (org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType)2 CompletionInitiatorPortType (org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionInitiatorPortType)2 ExceptionType (org.oasis_open.docs.ws_tx.wsba._2006._06.ExceptionType)2 IOException (java.io.IOException)1 QName (javax.xml.namespace.QName)1