Search in sources :

Example 1 with NotificationType

use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType 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 2 with NotificationType

use of com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType 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)

Example 3 with NotificationType

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

the class TerminationCoordinatorClient 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 SoapFault, IOException {
    MAPEndpoint participant = getParticipant(coordinator);
    AddressingHelper.installFromFaultTo(map, participant, identifier);
    final TerminationCoordinatorPortType port = getPort(coordinator, map, identifier, cancelAction);
    final NotificationType cancel = new NotificationType();
    port.cancelOperation(cancel);
}
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 4 with NotificationType

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

the class TerminationParticipantClient method sendCompleted.

/**
 * Send a completed 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 sendCompleted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCoordinator(participant);
    AddressingHelper.installFromFaultTo(map, coordinator, identifier);
    final TerminationParticipantPortType port = getPort(participant, map, identifier, completedAction);
    final NotificationType completed = new NotificationType();
    port.completedOperation(completed);
}
Also used : TerminationParticipantPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationParticipantPortType) MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)

Example 5 with NotificationType

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

the class TerminationParticipantClient method sendFaulted.

/**
 * Send a faulted 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 sendFaulted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCoordinator(participant);
    AddressingHelper.installFromFaultTo(map, coordinator, identifier);
    final TerminationParticipantPortType port = getPort(participant, map, identifier, faultedAction);
    final NotificationType faulted = new NotificationType();
    port.faultedOperation(faulted);
}
Also used : TerminationParticipantPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationParticipantPortType) MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)

Aggregations

NotificationType (com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)20 ArjunaContext (com.arjuna.webservices11.wsarj.ArjunaContext)10 MessageContext (javax.xml.ws.handler.MessageContext)10 MAP (org.jboss.ws.api.addressing.MAP)10 Task (com.arjuna.services.framework.task.Task)7 MAPEndpoint (org.jboss.ws.api.addressing.MAPEndpoint)7 TerminationParticipantPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationParticipantPortType)4 TerminationCoordinatorPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorPortType)3 TerminationCoordinatorRPCPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationCoordinatorRPCPortType)3 SOAPFaultException (javax.xml.ws.soap.SOAPFaultException)3 HttpServletRequest (javax.servlet.http.HttpServletRequest)1