My Oracle Support Banner

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

Last updated on JANUARY 12, 2022

Applies to:

Oracle WebLogic Server - Version 10.3 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.

NOTE:  The attribute values used in this article represent fictitious sample names that are made up as example. Any similarity to actual code, is purely coincidental and not intended in any other manner.

 

Below is an example :
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_dob">
<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

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
Goal
Solution


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