SWS-510 - AxiomSoapMessageFactory throws IllegalArgument when Content-Type is not set

This commit is contained in:
Arjen Poutsma
2009-05-14 12:22:19 +00:00
parent 378cf9bbb3
commit 50181571fa

View File

@@ -199,7 +199,10 @@ public class AxiomSoapMessageFactory implements SoapMessageFactory, Initializing
TransportInputStream transportInputStream = (TransportInputStream) inputStream;
String contentType = getHeaderValue(transportInputStream, TransportConstants.HEADER_CONTENT_TYPE);
if (!StringUtils.hasLength(contentType)) {
logger.debug("TransportInputStream has no Content-Type header; defaulting to text/xml");
if (logger.isDebugEnabled()) {
logger.debug("TransportInputStream has no Content-Type header; defaulting to \"" +
SoapVersion.SOAP_11.getContentType() + "\"");
}
contentType = SoapVersion.SOAP_11.getContentType();
}
String soapAction = getHeaderValue(transportInputStream, TransportConstants.HEADER_SOAP_ACTION);