"' 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 + "'");
boolean result;
// send and receive message
if (getEndpointConfiguration().getEndpointResolver() != null) {
result = getEndpointConfiguration().getWebServiceTemplate().sendAndReceive(endpointUri, requestCallback, responseCallback);
} else { // use default endpoint uri
result = getEndpointConfiguration().getWebServiceTemplate().sendAndReceive(requestCallback, responseCallback);
}
if (result) {
log.info("Received SOAP response from endpoint: '" + endpointUri + "'");
onReplyMessage(correlationKey, responseCallback.getResponse());
} else {
log.info("No SOAP response from endpoint: '" + endpointUri + "'");
}
}