axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Jan Wonnink" <>
Subject RE: BeanSerializer and xml attributes
Date Mon, 28 Jun 2004 20:28:59 GMT

.NET does support the use of of attributes by using simple configuration 
commands in the classes definition. I am verry supprised there is no Java 
equivalent yet, as there have been many questions/discussions on this 


Albert Jan

>From: "Anne Thomas Manes" <>
>To: <>
>Subject: RE: BeanSerializer and xml attributes
>Date: Mon, 28 Jun 2004 13:01:06 -0700
>Per the definition of "wrapped" in JAX-RPC (and in the way .NET works),
>wrapped does not support attributes - only a sequence of elements.
>   _____
>From: Wei Hsu []
>Sent: Monday, June 28, 2004 11:56 AM
>Subject: BeanSerializer and xml attributes
>Hi all,
>I was wondering if anyone knows whether axis's BeanSerializer actually
>supports xml attributes.  Currently when I try to send a doc/lit wrapped
>message with the following xml element:
>   <Stuff propStr2="b">
>     <propStr1>a</propStr1>
>     <propInt1>2</propInt1>
>   </Stuff>
>The BeanSerializer always ignores the attribute "propStr2" and calls
>createStuff("a", 2, null).  It seems somewhat intuitive that the
>BeanSerializer should be configurable to take the attribute and use the
>corresponding getters/setters on the server side.  Is there any reason why
>that's not the case right now?  Do I have to create my own
>serializer/deserializer if I want to use XML attributes?   I would really
>appreciate any info or help.  Thanks!

MSN Zoeken, voor duidelijke zoekresultaten!

View raw message