Skip Navigation
Expand
Connect for Web Services returns 500 response code for out-of-order nodes
Answer ID 11662   |   Last Review Date 07/22/2020

Why am I getting a 500 Response code from the SOAP API with an error response detail "Found out-of-order or unrecognized node Product"?

Environment:

Oracle B2C Service Connect Web Service for SOAP

Resolution:

The SOAP API returns a response code of 500 and the response body includes the faultstring "Data element in the Message is NULL" with detail including the text "Found out-of-order or unrecognized node Product".  This is due to the SOAP envelope construction, all nodes need to be in alphabetical order.  e.g. when adding Product to the example incident create, that node should be above the Subject:

            <ns7:RNObjects xmlns:ns4="urn:objects.ws.rightnow.com/v1_4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:Incident">
                <ns4:PrimaryContact>
                    <ns4:Contact>
                        <ID xmlns="urn:base.ws.rightnow.com/v1_4" id="1" />
                    </ns4:Contact>
                </ns4:PrimaryContact>
                <ns4:Product>
                   <ID id="1" xmlns="urn:base.ws.rightnow.com/v1_4%22%22/>
                </ns4:Product>
                <ns4:Subject>This is a newly created incident.</ns4:Subject>
           </ns7:RNObjects>
Notes:

For further information on the SOAP API, refer to Oracle B2C Service Connect Web Services for SOAP.