3 Replies Latest reply on Oct 29, 2009 12:37 PM by msakrejda

    How to define an object property name as a reserved word? (e.g. myObject.null)

    ScottyDawg

      I'm working with a web service whose WSDL defines a data type with a boolean property named "null":

       

      <xs:complexType name="Envelope">
           <xs:sequence>
                <xs:element minOccurs="0" name="height" type="xs:double"/>
                <xs:element minOccurs="0" name="maxX" type="xs:double"/>
                <xs:element minOccurs="0" name="maxY" type="xs:double"/>
                <xs:element minOccurs="0" name="minX" type="xs:double"/>
                <xs:element minOccurs="0" name="minY" type="xs:double"/>
                <xs:element minOccurs="0" name="null" type="xs:boolean"/>
                <xs:element minOccurs="0" name="width" type="xs:double"/>
           </xs:sequence>
      </xs:complexType>

       

      That obviously poses some issues. You can't define a property named "null" on an object. I remember reading something recently about a way to circumvent this issue, but I can't track it down. Any suggestions?