Hello,
Is there a way to ask AXIS (through
standard BeanDeserializer ) to map an XML
complex type that contains attributes
and a value but NO element (that is sub elements) to a javabean ?
For instance how to map the following
element to a javabean :
<person sex="M"
age="33">Smith</person>
I have no problem with the following
case which has no value, only attributes (using TypeDesc for mapping
attributes)
<person sex="M" age="33" />
I have no problem with the following
case which has at least one element and attributes (using
TypeDesc for mapping attributes)
<person sex="M"
age="33">
<name>Smith</name>
</person>
I could use a special deserializer but it
would force the SOAP request send type attributes in order to call the special
derserialize which would be a constraint for me.
My problems seems simple but I never found
an example similar to my case.
Any help would be appreciated.
Philippe Moreau
---===================================================================---
Philippe MOREAU ALTASYS Senior consultant Espace Média - Technoparc email : [EMAIL PROTECTED] 3 Rue Gustave Eiffel Phone # +33 6 75 20 48 09 78300 POISSY Fax # +33 1 53 01 37 67 WWW : http://www.altasys.fr ---===================================================================---
|