DAP Import WSDL Screens Mandate Optional XML Elements if Child Elements are Mandatory

(Doc ID 1985183.1)

Last updated on MARCH 04, 2015

Applies to:

Oracle Communications Network Charging and Control - Version 5.0.2 and later
Oracle Solaris on SPARC (64-bit)


On all versions of Oracle Network Charging and Control (NCC), when importing a WSDL which contains XML elements which contains other elements, the Data Access Pack (DAP) Web Services Description Language (WSDL) Import screen mandates optional XML elements if any of the sub/child-elements are mandatory irrespective of whether the super/parent-element was defined as mandatory or optional.

To define an optional XML element, the minOccurs attribute is added to the element declaration and set to 0, for example, the following userId element of type TrackingInfoDetail, as follows:

<xs:element name="userId" type="TrackingInfoDetail" minOccurs="0">
        <xs:documentation>Identification of a user or an application (significant for security audit purpose).</xs:documentation>

However due to one of the two TrackingInfoDetail elements being mandatory (value):

<xs:complexType name="TrackingInfoDetail">
        <xs:documentation>Tracking info identifier detail</xs:documentation>
        <xs:element name="value" type="xs:string">
                <xs:documentation>Identifier value</xs:documentation>
        <xs:element name="meaning" type="xs:string" minOccurs="0">
                <xs:documentation>Identifier meaning (specific service parameter name)</xs:documentation>

The DAP WSDL Import screens forces the userId element to be mandatory:

This WSDL/element definition should be interpreted as:

If the optional userId element is included, then the mandatory value element must be present.


Import of WSDL which contains optional XML elements which contain mandatory child elements.


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