DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17547>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17547

restriction base on string declaration does not work correctly

           Summary: restriction base on string declaration does not work
                    correctly
           Product: Axis
           Version: 1.1RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The following defintion

            <xsd:simpleType name="DigitStringType">
                <xsd:annotation>
                    <xsd:documentation>Numeric String</xsd:documentation>
                </xsd:annotation>
                <xsd:restriction base="xsd:string">
                <xsd:pattern value="\d+"/>
                </xsd:restriction>
            </xsd:simpleType>

does not prevent us from sending a string containing alphabets for an
element that has been defined as that type.

                <xsd:complexContent>
                    <xsd:extension base="common_xsd:RequestHeaderType">
                        <xsd:sequence>
                            <xsd:element name="postUrl" type="xsd:anyURI"
                                minOccurs="0"/>
                            <xsd:element name="actor"
                                type="opm_common_xsd:DigitStringType"
                                default="0000"/>
                            <xsd:element name="retryParams"
                                type="opm_common_xsd:RetryParamsType"
                                minOccurs="0"/>
                        </xsd:sequence>
                    </xsd:extension>
                </xsd:complexContent>
            </xsd:complexType>

I could send a string "abc" without any validation error being thrown for
the element "actor".

Reply via email to