HI,
I am using below xsd structure.What I am trying to achieve is, if empty value comes for the element LoggingOption. Then it should assign default value to it as an "Error". But while testing I found that it is sending empty value only.
<xsd:complexType name="logMessageRequestType">
<xsd:sequence>
<xsd:element name="Source" type="xsd:string"/>
<xsd:element name="LoggingOption" type="LoggingOptionType" default="Error"/>
<xsd:element name="LogMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="LoggingOptionType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Error"/>
<xsd:enumeration value="Warning"/>
<xsd:enumeration value="Info"/>
<xsd:enumeration value="Debug"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
Regards,
Shrikant