IBM Support

SOAP <dp:set-config> requests with nillable properties

Troubleshooting


Problem

When a property is defined as nillable but has a minimum occurrence of 1, you cannot set the property to null in a SOAP request.

Cause

Property with the nillable attribute and the minOccurs attribute defined as greater than 0. For illustrative purposes, the VirtualHostPort element.
<xsd:element name="VirtualHostPort" type="tns:dmIPPort" nillable="1" minOccurs="1" maxOccurs="1" />

Environment

SOAP <dp:set-config> requests with a property that uses the nillable attribute.

Diagnosing The Problem

When you attempt to define a configuration that contains elements with the nillable attribute and the minOccur attribute defined as 1, an error message is generated depending on the request.

Resolving The Problem

The schema for the SOAP request requires that the element be defined. You can define a null value with the xsi:nil attribute; for example: <VirtualHostPort xsi:nil="true"/>

When you use the xsi:nil attribute, you must define the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" namespace in the XML content.

[{"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateway"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"7.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21689631