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.


In WLS, 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:element form="qualified" name="id_empl_user">
<xsd:restriction base="string">
<xsd:maxLength value="8"/>
<xsd:whiteSpace value="preserve"/>
<xsd:element form="qualified" name="id_dob">
<xsd:restriction base="long">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="9999999999"/>

when we populate only id_empl_user the following request is generated
<env:Envelope xmlns:env="" xmlns:xsi=""><env:Header/>
<cus:sample xmlns:cus="YYYYY">

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 ?


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

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