Null Wsdl Fields Omitted in soap Request (Doc ID 1135316.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.

Goal

In WLS 10.3.0.0, following problem was experienced with SoapRequest which is being generated. An empty field is not replaced with xsi:nil="true" in the soap message.


For Eg:-
====
If the following complex element defined in wsdl
====================================
<xsd:complexType name="XXXXXXXXXXXXXXXXXX">
<xsd:sequence>
<xsd:element form="qualified" name="id_empl_user">
<xsd:simpleType>
<xsd:restriction base="string">
<xsd:maxLength value="8"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element form="qualified" name="id_ba">
<xsd:simpleType>
<xsd:restriction base="long">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="9999999999"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:complexType>

when we populate only id_empl_user the following request is generated
================================================================

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Header/>
<env:Body>
<cus:sample xmlns:cus="YYYYY">
<cus:id_empl_user>696</cus:id_empl_user>
</cus:sample>
</env:Body></env:Envelope>

but this is not generating the other attribute since the value is null

Is there anything to be configured in the WebLogic server for resolving this issue ?

Solution

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