It is the java2wsdl that is the problem step. I guess that it would need to spot public final static Strings and ints etc and make them enumerated types.
For now a manual edit of the WSDL is working.
Thanks, Stuart.
McDaniel, Joe wrote:
Hi Stuart,
Part of the source distribution are the test cases. Here is the wsdl for
testing enumerations. Perhaps your wsdl is not correct?
I did submit my changes to the wsdl2java tool. There would not be a
comparable change to the javaw2sdl tool (I think) -- in any case, one
must always do the java2wsdl and then wsdl2java steps to create the
working .java files. I have not tried the java2wsdl route for anything
complex so there may be some "magic" in what you must do I am not aware
of. Since there is no explicit enum object in Java, it may be difficult
for java2wsdl to recognize an enumeration. I am not a registered developer so I posted my revised class on the
bug/feature reporting area. I can send you a copy of the new class. Best,
-----Original Message-----
From: Stuart Barlow [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 3:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Enumeration Question
Thanks for all the info. I am aware of the type safe enumerations pattern and the benefits this brings.
But when I run Java2WSDL I do not get any enumerated definitions of any kind. They are just ignored.
Did you submit a fix for the Java2WSDL tool? Or am I making a mistake when running it? :-)