|
Jerry,
Here is the code fragement for doing
Bean Serialization/Deserialization. For other kind of
Serialization/Deserialization, refer to the API documentation given by AXIS.
(org.apache.axis.encoding.ser package).
import
org.apache.axis.encoding.ser.BeanSerializerFactory;
import org.apache.axis.encoding.ser.BeanDeserializerFactory; import
com.google.soap.search.GoogleSearchResult;
//Creating Bean
Serializer/Deserializer factory
BeanSerializerFactory bsf1 = new
BeanSerializerFactory(GoogleSearchResult.class, new QName("urn:GoogleSearch",
"GoogleSearchResult"));
BeanDeserializerFactory bdf1 = new BeanDeserializerFactory(GoogleSearchResult.class, new QName("urn:GoogleSearch", "GoogleSearchResult")); //Mapping the
Return type objects with
XML
call.registerTypeMapping(GoogleSearchResult.class, new QName("urn:GoogleSearch", "GoogleSearchResult"),bsf1, bdf1); Regards,
Santhosh
|
