if (!(soapMessage.getPayload() instanceof String)) {
throw new CitrusRuntimeException("Unsupported payload type '" + soapMessage.getPayload().getClass() +
"' Currently only 'java.lang.String' is supported as payload type.");
}
SoapRequestMessageCallback requestCallback = new SoapRequestMessageCallback(soapMessage, getEndpointConfiguration());
SoapResponseMessageCallback responseCallback = new SoapResponseMessageCallback(getEndpointConfiguration());
getEndpointConfiguration().getWebServiceTemplate().setFaultMessageResolver(new InternalFaultMessageResolver(correlationKey, endpointUri));
log.info("Sending SOAP message to endpoint: '" + endpointUri + "'");