Search in sources :

Example 6 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 endpoint the endpoint reference to notify
 * @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 W3CEndpointReference endpoint, final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException {
    // AddressingHelper.installFrom(map, terminationCoordinator, identifier);
    AddressingHelper.installNoneReplyTo(map);
    final TerminationParticipantPortType port = getPort(endpoint, 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)

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