Search in sources :

Example 11 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendCoordinatorCompleteClose.

/**
 * Send a coordinator complete close request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendCoordinatorCompleteClose(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, coordinatorCompleteCloseAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.coordinatorCompleteClose();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Example 12 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendUnsolicitedComplete.

/**
 * Send a unsolicited complete request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendUnsolicitedComplete(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, unsolicitedCompleteAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.unsolicitedComplete();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Example 13 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendMixedOutcome.

/**
 * Send a mixed outcome request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendMixedOutcome(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, mixedOutcomeAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.mixedOutcome();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Aggregations

ParticipantPortType (com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)13 ParticipantService (com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantService)1 CoordinationContextHandler (com.jboss.transaction.txinterop.webservices.handlers.CoordinationContextHandler)1 ArrayList (java.util.ArrayList)1 BindingProvider (javax.xml.ws.BindingProvider)1 Handler (javax.xml.ws.handler.Handler)1 AddressingFeature (javax.xml.ws.soap.AddressingFeature)1