My Oracle Support Banner

Null Elements of a Soap Request Issued From a Web Service Proxy Are Serialized as xsi:nil="1" (Doc ID 1244774.1)

Last updated on SEPTEMBER 04, 2018

Applies to:

Oracle JDeveloper - Version: 10.1.3.5.0 to 10.1.3.5.0 - Release: Oracle10g to
Web Services - Version: 10.1.3.0.0 to 10.1.3.5   [Release: to AS10gR3]
Information in this document applies to any platform.

Symptoms

The issue occurs for a JAXRPC web service proxy created in JDeveloper.  The null elements of a SOAP request issued from the proxy are serialized as xsi:nil="1".

<?xml version = '1.0' encoding = 'UTF-8'?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" 
              xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xmlns:ns0="http://echoservice/types/">
    <env:Body>
        <ns0:echoElement>
            <ns0:in xsi:nil="1"/>
        </ns0:echoElement>
    </env:Body>
</env:Envelope>

There are cases where a web service requires the null elements to be serialized to xsi:nil="true" in the SOAP request.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
  Symptoms
  Cause
  Solution
  References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.