skip to main content
Corticon Server: Integration & Deployment Guide : Service contract examples : Extended datatypes
 

Try Corticon Now

Extended datatypes

If the newOrModified attribute is enabled, then the base XML datatypes must be extended to accommodate it. The following complexTypes are included in service contracts that make use of the newOrModified attribute.

ExtBooleanType

<xsd:complexType name=ExtBooleanType
<xsd:simpleContent>
      <xsd:extension base=xsd:boolean>
        <xsd:attribute name=newOrModified type=xsd:boolean
use=optional />
      </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

ExtStringType

<xsd:complexType name=ExtStringType>
    <xsd:simpleContent>
      <xsd:extension base=xsd:string>
        <xsd:attribute name=newOrModified type=xsd:boolean
use=optional />
      </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

ExtDateTimeType

<xsd:complexType name=ExtDateTimeType>
    <xsd:simpleContent>
      <xsd:extension base=xsd:dateTime>
        <xsd:attribute name=newOrModified type=xsd:boolean
use=optional />
      </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

ExtIntegerType

<xsd:complexType name=ExtIntegerType>
    <xsd:simpleContent>
      <xsd:extension base=xsd:integer>
        <xsd:attribute name=newOrModified"type=xsd:boolean
use=optional />
      </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

ExtDecimalType

<xsd:complexType name=ExtDecimalType>
    <xsd:simpleContent>      
<xsd:extension base=xsd:decimal>
        <xsd:attribute name=newOrModified
type=xsd:boolean use=optional />
      </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>