I have an application Spring WS on Spring Boot 1.5, SAAJ-impl-1.3.28.jar. It works fine with content-type "text/xml" buy throwing the below exception for Content-Type:application/xml.
"ERROR - a.c.c.C.[.[.[.[messageDispatcherServlet] : Servlet.service() for servlet [messageDispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.ws.soap.SoapMessageCreationException: Could not create message from InputStream: Invalid Content-Type:application/xml. Is this an error message instead of a SOAP response?; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:application/xml. Is this an error message instead of a SOAP response?] with root cause com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:application/xml. Is this an error message instead of a SOAP response?"
I tried to force update content-type to "text/xml" by extending HttpServletResponseWrapper super.setContentType() in the Servlet Filter, but it didn't help. How to bypass or forceupdate the content-type so to satisfy SAAJ?