The wadl2java tool support for XML Schema simple types needs some
work. Try the following instead:
<param name="isitok" style="query" default="0">
<option value="0"/>
<option value="1"/>
</param>
I just committed a fix to support the above so you'll have to "svn
update" otherwise the generated enum will be invalid.
Marc.
On Nov 20, 2006, at 9:42 AM, venkat wrote:
> 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
>
>
> Find out what India is talking about on - Yahoo! Answers India
> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version
> 8. Get it NOW
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.
- application/pkcs7-signature attachment: smime.p7s