Gateway Sends SOAP 1.2 Messages, But Client Requires SOAP 1.1 Reporting The "com.sun.xml.ws.protocol.soap.VersionMismatchException: Couldn't create SOAP message" Error (Doc ID 1585645.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

A SOAP 1.1 client connects to the Gateway.

The following error is observed on the client

#### <> <> com.sun.xml.ws.protocol.soap.VersionMismatchException: Couldn't create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope


The Gateway's trace file, at trace level DATA, shows:

ERROR 13/Sep/2013:07:59:08.364 Service Handler for 'HelloWorld_ep' filter failed
DEBUG 13/Sep/2013:07:59:08.364 run filter [Call 'Global Exception Handler'] {
DEBUG 13/Sep/2013:07:59:08.364 run circuit "Global Exception Handler"...
DEBUG 13/Sep/2013:07:59:08.364 run filter [Set Exception Message] {
DEBUG 13/Sep/2013:07:59:08.365 The content type of the converted message is text/xml
DATA 13/Sep/2013:07:59:08.365 The converted message is <?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
 <env:Header></env:Header>
 <env:Body>
     <env:Fault>
         <env:Code>
             <env:Value>env:Receiver</env:Value>
             <env:Subcode>
                 <env:Value xmlns:fault="http://www.vordel.com/soapfaults">
                    [invalid field]
    [invalid field]
                 </env:Value>
             </env:Subcode>
         </env:Code>
         <env:Reason>
             <env:Text lang="en">
                Your request failed. Contact the administrator with the following code : Id-12345678
             </env:Text>
         </env:Reason>
     </env:Fault>
 </env:Body>
</env:Envelope>

  



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms