Search in sources :

Example 1 with MAPEndpoint

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

the class CompletionCoordinatorClient method sendCommit.

/**
 * Send a commit 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 sendCommit(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint initiator = getCompletionInitiator(endpoint);
    AddressingHelper.installFromFaultTo(map, initiator, identifier);
    CompletionCoordinatorPortType port = getPort(endpoint, map, commitAction);
    Notification commit = new Notification();
    port.commitOperation(commit);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) CompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Example 2 with MAPEndpoint

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

the class CompletionInitiatorClient method sendAborted.

/**
 * Send an aborted 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 sendAborted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCompletionCoordinator(participant);
    AddressingHelper.installFaultTo(map, coordinator, identifier);
    CompletionInitiatorPortType port = getPort(participant, map, abortedAction);
    Notification aborted = new Notification();
    port.abortedOperation(aborted);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) CompletionInitiatorPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionInitiatorPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Example 3 with MAPEndpoint

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

the class CompletionInitiatorClient method sendCommitted.

/**
 * Send a committed 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 sendCommitted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCompletionCoordinator(participant);
    AddressingHelper.installFaultTo(map, coordinator, identifier);
    CompletionInitiatorPortType port = getPort(participant, map, committedAction);
    Notification commited = new Notification();
    port.committedOperation(commited);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) CompletionInitiatorPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionInitiatorPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Example 4 with MAPEndpoint

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

the class TerminationCoordinatorClient 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(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint participant = getParticipant(coordinator);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    final TerminationCoordinatorPortType port = getPort(coordinator, map, identifier, completeAction);
    final NotificationType complete = new NotificationType();
    port.completeOperation(complete);
}
Also used : TerminationCoordinatorPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorPortType) MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)

Example 5 with MAPEndpoint

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

the class TerminationCoordinatorClient 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(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint participant = getParticipant(coordinator);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    final TerminationCoordinatorPortType port = getPort(coordinator, map, identifier, closeAction);
    final NotificationType close = new NotificationType();
    port.closeOperation(close);
}
Also used : TerminationCoordinatorPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorPortType) MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)

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