Hi,
I am trying to deserialize a complex object of the
following type;
class A {
Integer id;
String str;
B[] anObjectArray;
}
class B {
Integer id;
String str;
C anObject;
}
class C {
Integer id;
String str;
}
I created the java bean classes for these objects
with setters/getters and no arg constructor. The Object returned from the soap
call is A as the name "Result". I mapped all the classes as
follows..
smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:theurn", "Result"), A.class, beanSer, beanSer); smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:theurn", "Result"), B.class, beanSer, beanSer); smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:theurn", "Result"), C.class, beanSer, beanSer); But on the Call.invoke I am getting the following exception where
Category corresponds to the Object A:
Caught SOAPException (SOAP-ENV:Client): No Deserializer found to
deserialize a '
http://www.themindelectric.com/package/com.bioweb.services.dataserver/:Category' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. Can somebody help me with this..
Thanks..
Chirdeep. |
- RE: Apache Bean Deserializer Problem Chirdeep Sharma
- RE: Apache Bean Deserializer Problem Joe Pruitt