axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascal.recc...@devoteam.com
Subject Réf. : beans as attributes to beans
Date Fri, 05 Jul 2002 15:53:40 GMT





I develop Web Services which return objects that contain beans as attributes
in other beans.

I don't use the wsdl2java ... But if you want serialize on client side a bean ..
bean, you must use this method registerTypeMapping :

QName qn = new QName( "urn:BeanService", "Order" );

call.registerTypeMapping(Order.class, qn, new
org.apache.axis.encoding.ser.BeanSerializerFactory(Order.class, qn), new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Order.class, qn));

You can see the userguide/example5 provided with axis distribution.

If the object contain beans as attributes
in other beans.

You must have a registerTypeMapping for each bean which intervenes ...

MayBe the tool wsdl2java doesn't manage the bean composed by beans ... (Complex
Type based on Complex Type) ...

________________________________________________________
Pascal RECCHIA

Tel: 01.41.49.41.50
Groupe DEVOTEAM - SITICOM
86, rue Anatole France
92300 LEVALLOIS PERRET


Ian Roughley <roughley@yahoo.com>
05/07/2002 13:23 GMT
Veuillez répondre à axis-user

Pour : axis-user@xml.apache.org
cc :
ccc : Pascal Recchia/Devoteam
Objet : beans as attributes to beans


[IMAGE]
Hi,

Has anyone had experience with objects that contain beans as attributes
in other beans? The Java2WSDL and WSDL2Java work fine, and looks good.
On the server side the return object is serialized correctly, but on
the client there are exceptions for deserializing
(org.xml.sax.SAXException: !! No Deserializer for ...) - even though
the Stub and the dd both have all the beans included.

Thanks for the help,
Ian

i.e.

BeanA {
BeanB b;
setB( BeanB b );
BeanB getB();
}

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com




______________________________________________________________________


Devoteam Siticom Strategic Partner of the French Challenger in the 2003
America's Cup

ABOUT THE DEVOTEAM GROUP
Devoteam is a leading European Consulting Group in networks and e-business
infrastructures.
We help our clients build corporate results from innovative information
technology solutions.
In 2001, pro forma revenues (including Siticom Group) amounted to € 142 MM.
The new group has 1,800 employees in eight European countries (France, Belgium,
Denmark, Netherlands, UK, Spain, Austria).
Devoteam has been listed on the Nouveau Marché of Euronext Paris since October
1999 (Euroclear 7379) and joined the NextEconomy segment of Euronext.



Mime
View raw message