the output should be simpleType e.g.
<simpleType name="Code">
<restriction base="xsd:string">
<enumeration value="ASSIGNEE_TYPE_REQUIRED"/>
</restriction>
</simpleType>
pls display
your code and
the usage of either Java2WSDL or JIBX2WSDL commands
thanks,
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Fri, 31 Jul 2009 12:57:06 -0400
Subject: Re: Axis2 and Java 5 Enum
From: [email protected]
To: [email protected]
It's been a few days, but I finally got around to trying out Jibx2Wsdl.
Unfortunately, it does not produce the correct schema for enums either. My
simple status enum produces the following xml:
<xs:complexType name="pojoClassStatus"> <xs:sequence/></xs:complexType>
How can I generate this correctly?
On Tue, Jul 21, 2009 at 12:59 PM, Dennis Sosnoski <[email protected]> wrote:
robert lazarski wrote:
Yes, use Jibx2Wsdl from jibx instead of java2wsdl. jibx seems to support enums:
http://jibx.sourceforge.net/tutorial/binding-advanced.html
A somewhat dated article here shows how to use Jibx2Wsdl - try
googling for something with the latest release.
http://www.infoq.com/articles/sosnoski-code-first
Beat me to it, Robert!
There's a newer (and more in-depth) article on Jibx2Wsdl at
http://www.ibm.com/developerworks/java/tutorials/j-jibx1/ There's also a
companion one covering code generation from schema with JiBX at
http://www.ibm.com/developerworks/java/tutorials/j-jibx2/
- Dennis
--
Dennis M. Sosnoski
Java XML and Web Services
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
_________________________________________________________________
Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics.
Check it out.
http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports