Re: Java 5 enums with Axis 1.2
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 20:48:49 GMT
On 31 Aug 2005 07:34:13 -0700, "Markus Weseloh"
<Markus.Weseloh@xxxxxxxx> wrote or quoted :
>we develop a prototype using JDK 1.5. In this prototype we use Axis 1.2
>for SOAP communication between the client and the server (Tomcat
>5.5.9). Our problem is that we want to use the new Java 5 enums but
>Axis 1.2 won't work with them (e.g. when a get method returns an enum).
>Is it possible to write user defined serializer and deserializer to
>support Java 5 enums? Or is there a standard solution? Or is it
>impossible at all :-)?
You could write the ordinal or the name instead.
You need a dummy class on the other end with the same name as the enum
or the enum constant (if you added custom methods to it) that will
behave sufficiently like an enum. Then it would not need custom
serialisation.
You could decompile the enum code to get you a first shot at such
code. The enums in 1.4 still won't work in case labels.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- Prev by Date: Re: Java application on a mobile
- Next by Date: Parameter got swapped
- Previous by thread: Re: Java application on a mobile
- Next by thread: Parameter got swapped
- Index(es):
Relevant Pages
|