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)

Symptoms

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:annotation>
        <xs:documentation>Identification of a user or an application (significant for security audit purpose).</xs:documentation>
    </xs:annotation>
</xs:element>

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

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

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

Cause

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