}
log.info("Received SOAP fault response from endpoint: '" + endpointUri + "'");
onReplyMessage(correlationKey, responseMessage);
} catch (TransformerException e) {
throw new CitrusRuntimeException("Failed to handle fault response message", e);
}
} else if (getEndpointConfiguration().getErrorHandlingStrategy().equals(ErrorHandlingStrategy.THROWS_EXCEPTION)) {
if (webServiceResponse instanceof org.springframework.ws.soap.SoapMessage) {
new SoapFaultMessageResolver().resolveFault(webServiceResponse);
} else {
new SimpleFaultMessageResolver().resolveFault(webServiceResponse);
}
} else {
throw new CitrusRuntimeException("Unsupported error strategy: " + getEndpointConfiguration().getErrorHandlingStrategy());
}
}