How to create a valid schema in a WSDL that restrict to <|<=|>|>=

Posted by wsxedc on Stack Overflow See other posts from Stack Overflow or by wsxedc
Published on 2010-05-25T22:27:15Z Indexed on 2010/05/25 22:31 UTC
Read the original article Hit count: 177

Filed under:
|

This is what I have in my schema section of my WSDL to specify the field has to be comparison operators

                <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                            <xsd:pattern value="&lt;|&gt;|&lt;=|&gt;=|="/>
                        </xsd:restriction>
                </xsd:simpleType>

SoapUI complains about this part of the WSDL, I tried to set the value to something with non special characters and the WSDL is valid. So I tried to replace that whole long string to be value=">gt;" and it valid but value="<lt;" is not valid, and value=">" is also not valid. My question is, why does the WSDL validation need > to be double escaped?

The main question is, how to provide a valid less than side within the pattern value.

© Stack Overflow or respective owner

Related posts about wsdl

Related posts about xml-schema