Search in sources :

Example 1 with TerminationCoordinatorRPCPortType

use of com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType in project narayana by jbosstm.

the class TerminationCoordinatorRPCClient 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(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException {
    final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction);
    final NotificationType cancel = new NotificationType();
    try {
        port.cancelOperation(cancel);
    } catch (SOAPFaultException sfe) {
        throw SoapFault11.create(sfe);
    }
}
Also used : NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType) SOAPFaultException(javax.xml.ws.soap.SOAPFaultException) TerminationCoordinatorRPCPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType)

Example 2 with TerminationCoordinatorRPCPortType

use of com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType in project narayana by jbosstm.

the class TerminationCoordinatorRPCClient 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 SoapFault11, IOException {
    final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction);
    final NotificationType complete = new NotificationType();
    try {
        port.completeOperation(complete);
    } catch (SOAPFaultException sfe) {
        throw SoapFault11.create(sfe);
    }
}
Also used : NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType) SOAPFaultException(javax.xml.ws.soap.SOAPFaultException) TerminationCoordinatorRPCPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType)

Example 3 with TerminationCoordinatorRPCPortType

use of com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType in project narayana by jbosstm.

the class TerminationCoordinatorRPCClient 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 SoapFault11, IOException {
    final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction);
    final NotificationType close = new NotificationType();
    try {
        port.closeOperation(close);
    } catch (SOAPFaultException sfe) {
        throw SoapFault11.create(sfe);
    }
}
Also used : NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType) SOAPFaultException(javax.xml.ws.soap.SOAPFaultException) TerminationCoordinatorRPCPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType)

Aggregations

NotificationType (com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)3 TerminationCoordinatorRPCPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType)3 SOAPFaultException (javax.xml.ws.soap.SOAPFaultException)3