Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xsd default value issue in BPEL(SOA 12c )

2620535Jun 13 2016 — edited Jun 13 2016

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2016
Added on Jun 13 2016
1 comment
768 views