Pascal,

The serializing in not the problem.  I am doing the reverse of example
5 - I am sending a string to the web service and returning a complex
object.  By using TCPMon I can see all the data serialized correctly
from service going back to the client.  But on the client the
DeserializeImpl  is not finding the registered deserializer and
throwing the  "org.xml.sax.SAXException: !! No Deserializer for ..."
exception.

I checked the typeMappings, and they are provided in the wsdl2java
generated code.

Thanks,
Ian


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 <[EMAIL PROTECTED]>
05/07/2002 13:23 GMT
Veuillez r�pondre � axis-user

Pour : [EMAIL PROTECTED]
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.





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

Reply via email to