com.sun.xml.messaging.saaj.soap.SOAPVersionMismatchException

Unable to create envelope from given source because the namespace was not recognized

Solutions on the web3

  • via Oracle Community by 807581, 1 year ago
    Unable to create envelope from given source because the namespace was not recognized
  • via Coderanch by Garandi Garandi, 7 months ago
    Cannot create message: incorrect content-type for SOAP version. Got: application/soap+xml; type="text/xml"; charset=utf-8 Expected: text/xml
  • via Stack Overflow by Do Will
    , 4 weeks ago
    Cannot create message: incorrect content-type for SOAP version. Got: multipart/related; boundary="----=_Part_17_23243736.1498246796147"; start="<soapPart>"; type="text/xml" Expected: application/soap+xml
  • Stack trace

    • com.sun.xml.messaging.saaj.soap.SOAPVersionMismatchException: Unable to create envelope from given source because the namespace was not recognized at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:107) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:74) at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:65) at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:34) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:82) at com.stc.wsserver.runtime.impl.SoapServerBuilder.createDOMMessageFromSOAPRequest2(SoapServerBuilder.java:331) at com.stc.wsserver.runtime.servlet.impl.SoapServer.handleSoapRequest(SoapServer.java:323) at com.stc.wsserver.runtime.servlet.impl.SoapServer.handleRequest(SoapServer.java:169) at com.stc.wsserver.runtime.servlet.impl.SoapServer.doPost(SoapServer.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.