simpleType/complexType not being enforced

Discussion in 'XML' started by JamesG, Apr 19, 2007.

  1. JamesG

    JamesG Guest

    Hi all,

    In my WSDL, I have several constraints on the data structure. The
    problem is, they aren't being enforced.
    Take the following two as an example.

    <xsd:simpleType name="consTokenType">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[a-z0-9]{32}"/>
    </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="statusType">
    <xsd:restriction base="xsd:string">
    <xsd:enumeration value="enroute"/>
    <xsd:enumeration value="delayed"/>
    <xsd:enumeration value="instorage"/>
    <xsd:enumeration value="pendingcustoms"/>
    <xsd:enumeration value="missing"/>
    </xsd:restriction>
    </xsd:simpleType>

    Am I missing something really simple??
    Thanks
     
    JamesG, Apr 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    445
  2. sk
    Replies:
    1
    Views:
    422
    Priscilla Walmsley
    Jun 14, 2006
  3. JamesG
    Replies:
    2
    Views:
    396
    JamesG
    Apr 21, 2007
  4. John Nagle
    Replies:
    4
    Views:
    597
    James Antill
    Aug 7, 2007
  5. Delaney, Timothy (Tim)
    Replies:
    0
    Views:
    568
    Delaney, Timothy (Tim)
    Aug 7, 2007
Loading...

Share This Page