Search in sources :

Example 1 with TerminationParticipantPortType

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

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

Example 3 with TerminationParticipantPortType

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

the class TerminationParticipantClient method sendSoapFault.

/**
 * Send a fault.
 * @param map The addressing context.
 * @param soapFault The SOAP fault.
 * @param identifier The arjuna  instance identifier.
 * @throws com.arjuna.webservices.SoapFault For any errors.
 * @throws java.io.IOException for any transport errors.
 */
public void sendSoapFault(final SoapFault soapFault, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    final TerminationParticipantPortType port = getPort(map, identifier, soapFaultAction);
    SoapFault11 soapFault11 = (SoapFault11) soapFault;
    Fault fault = soapFault11.toFault();
    port.faultOperation(fault);
}
Also used : TerminationParticipantPortType(com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationParticipantPortType) SoapFault11(com.arjuna.webservices11.SoapFault11) SoapFault(com.arjuna.webservices.SoapFault) Fault(org.xmlsoap.schemas.soap.envelope.Fault)

Example 4 with TerminationParticipantPortType

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

the class TerminationParticipantClient method sendCancelled.

/**
 * Send a cancelled 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 sendCancelled(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, cancelledAction);
    final NotificationType cancelled = new NotificationType();
    port.cancelledOperation(cancelled);
}
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 TerminationParticipantPortType

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

the class TerminationParticipantClient 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(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, closedAction);
    final NotificationType closed = new NotificationType();
    port.closedOperation(closed);
}
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

TerminationParticipantPortType (com.arjuna.schemas.ws._2005._10.wsarjtx.TerminationParticipantPortType)6 NotificationType (com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)4 MAPEndpoint (org.jboss.ws.api.addressing.MAPEndpoint)4 SoapFault (com.arjuna.webservices.SoapFault)2 SoapFault11 (com.arjuna.webservices11.SoapFault11)2 Fault (org.xmlsoap.schemas.soap.envelope.Fault)2