Search in sources :

Example 1 with BusinessAgreementWithParticipantCompletionParticipantPortType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType in project narayana by jbosstm.

the class ParticipantCompletionParticipantClient method sendNotCompleted.

/**
 * Send a not 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 sendNotCompleted(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCoordinator(endpoint, map);
    AddressingHelper.installFaultTo(map, coordinator, identifier);
    BusinessAgreementWithParticipantCompletionParticipantPortType port;
    port = getPort(endpoint, map, notCompletedAction);
    NotificationType notCompleted = new NotificationType();
    port.notCompleted(notCompleted);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Example 2 with BusinessAgreementWithParticipantCompletionParticipantPortType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType in project narayana by jbosstm.

the class ParticipantCompletionParticipantClient method sendSoapFault.

/**
 * send a soap fault
 * @param soapFault the fault to be sent
 * @param endpoint the endpoint to send the fault to
 * @param map addressing context to be used to send the fault
 * @param faultAction the action to associate with the message
 */
public void sendSoapFault(SoapFault11 soapFault, W3CEndpointReference endpoint, MAP map, String faultAction) throws SoapFault, IOException {
    AddressingHelper.installNoneReplyTo(map);
    map.setAction(faultAction);
    BusinessAgreementWithParticipantCompletionParticipantPortType port;
    port = getPort(endpoint, map, faultAction);
    Fault fault = ((SoapFault11) soapFault).toFault();
    port.soapFault(fault);
}
Also used : SoapFault(com.arjuna.webservices.SoapFault) Fault(org.xmlsoap.schemas.soap.envelope.Fault) SoapFault11(com.arjuna.webservices11.SoapFault11) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Example 3 with BusinessAgreementWithParticipantCompletionParticipantPortType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType in project narayana by jbosstm.

the class ParticipantCompletionParticipantClient 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 coordinator = getCoordinator(endpoint, map);
    AddressingHelper.installFromFaultTo(map, coordinator, identifier);
    BusinessAgreementWithParticipantCompletionParticipantPortType 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) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Example 4 with BusinessAgreementWithParticipantCompletionParticipantPortType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType in project narayana by jbosstm.

the class ParticipantCompletionParticipantClient method sendFailed.

/**
 * Send a failed 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 sendFailed(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCoordinator(endpoint, map);
    AddressingHelper.installFaultTo(map, coordinator, identifier);
    BusinessAgreementWithParticipantCompletionParticipantPortType port;
    port = getPort(endpoint, map, failedAction);
    NotificationType failed = new NotificationType();
    port.failedOperation(failed);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Example 5 with BusinessAgreementWithParticipantCompletionParticipantPortType

use of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType in project narayana by jbosstm.

the class ParticipantCompletionParticipantClient method sendCompensate.

/**
 * Send a compensate 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 sendCompensate(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
    MAPEndpoint coordinator = getCoordinator(endpoint, map);
    AddressingHelper.installFromFaultTo(map, coordinator, identifier);
    BusinessAgreementWithParticipantCompletionParticipantPortType port;
    port = getPort(endpoint, map, compensateAction);
    NotificationType compensate = new NotificationType();
    port.compensateOperation(compensate);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) BusinessAgreementWithParticipantCompletionParticipantPortType(org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)

Aggregations

BusinessAgreementWithParticipantCompletionParticipantPortType (org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithParticipantCompletionParticipantPortType)9 MAPEndpoint (org.jboss.ws.api.addressing.MAPEndpoint)8 NotificationType (org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType)7 SoapFault (com.arjuna.webservices.SoapFault)1 SoapFault11 (com.arjuna.webservices11.SoapFault11)1 StatusType (org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType)1 Fault (org.xmlsoap.schemas.soap.envelope.Fault)1