Search in sources :

Example 31 with MAPEndpoint

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

the class ParticipantClient 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 coordinator = getCoordinator(endpoint, map);
    AddressingHelper.installFromFaultTo(map, coordinator, identifier);
    ParticipantPortType port = getPort(endpoint, map, commitAction);
    Notification commit = new Notification();
    port.commitOperation(commit);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) ParticipantPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.ParticipantPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Example 32 with MAPEndpoint

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

the class ParticipantClient method sendPrepare.

/**
 * Send a prepare 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 sendPrepare(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCoordinator(endpoint, map);
    AddressingHelper.installFromFaultTo(map, coordinator, identifier);
    ParticipantPortType port = getPort(endpoint, map, prepareAction);
    Notification prepare = new Notification();
    port.prepareOperation(prepare);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) ParticipantPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.ParticipantPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Example 33 with MAPEndpoint

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

the class CoordinatorCompletionCoordinatorClient method sendCannotComplete.

/**
 * Send a cannot 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 sendCannotComplete(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, cannotCompleteAction);
    NotificationType cannotComplete = new NotificationType();
    port.cannotComplete(cannotComplete);
}
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 34 with MAPEndpoint

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

the class CoordinatorCompletionCoordinatorClient 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 {
    MAPEndpoint participant = getParticipant(endpoint, map);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
    port = getPort(endpoint, map, exitAction);
    NotificationType exited = new NotificationType();
    port.exitOperation(exited);
}
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 35 with MAPEndpoint

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

the class CoordinatorCompletionCoordinatorClient 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 participant = getParticipant(endpoint, map);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    BusinessAgreementWithCoordinatorCompletionCoordinatorPortType 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) BusinessAgreementWithCoordinatorCompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionCoordinatorPortType)

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