I want an input parameter to have a value of either 0 or 1. How do I define this in WADL?
I tried this (xmlns:ns = "urn:my:ns")..
<xsd:schema targetNamespace="urn:my:ns">
<xsd:simpleType name="OKParam">
<xsd:restriction base="xsd:int">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
....
<param name="isitok" type="ns:OKParam" default="0" style="query">
Is this correct? The WADL2Java takes the type as String. Is it planned later in the implementation?
Thanks,
Venky
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/