-- 
________________________________________________________________
Wilfred Springer               Phone  : +31 (0)3 3451 5736
Java Architect                 Mobile : +31 (0)6 2295 7321
Sun Java Center                Fax    : +31 (0)3 3451 5734
Sun Microsystems Netherlands   Mail   : [EMAIL PROTECTED]
--- Begin Message ---
-- 
Wilfred Springer <[EMAIL PROTECTED]>
--- Begin Message ---
Hi all,

<xsd:simpleType name="FooBarType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="foo"/>
<xsd:enumeration value="bar"/>
</xsd:restriction>
</xsl:simpleType>

<xsd:simpleType name="FooBarTypeList">
<xsd:list itemType="FooBarType"/>
</xsd:simpleType>

I browsed through the mailing list and noticed that some people already
discovered that this doesn't work. So I need a workaround. The problem
is, no matter how hard I try, I can't come up with a proper solution.

I tried several things, like:

<xsd:complexType name="FooBarTypeList">
<xsd:element
    maxOccurs="unbounded"
    name="fooBarType"
    type="FooBarType"/>
</xsd:complexType>

And several other options found in the JAXRPC spec, like specifying
soap:Array as a restriction etc.

Nothing works. The wsdl2java ant task will never generate something
useful. (Most of the time, it will generate a class called
FooBarTypeList containing no accessors at all.)

Please! Help me out!

-- 
Wilfred Springer <[EMAIL PROTECTED]>
--- End Message ---
--- End Message ---

Reply via email to