wood burning stoves 2.0*
The moose likes Web Services and the fly likes Getting error in deserialization of object on client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Getting error in deserialization of object on client side" Watch "Getting error in deserialization of object on client side" New topic
Author

Getting error in deserialization of object on client side

naveen jain
Greenhorn

Joined: Oct 02, 2008
Posts: 16
Hi,
i am using axis libraries for web services.this service returns a bean object so i add following code in my AtomService.wsdd file:-

<beanMapping languageSpecificType="java:com.you.atom.AtomBean"
qname="ns1:AtomBean" xmlns:ns1="urn:com.you.atom" />

this code works but when i am creating a web service client on same server then i am getting exception :-

org.xml.sax.SAXException: No deserializer defined for array type {urn:com.you.atom}AtomBean

how can i deserialize my bean class.?

pl. help me
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
If you have a look at Encoding Your Beans - the BeanSerializer samples/userguide/example5 is referenced.

In samples.userguide.example5.Client.java you will find:

i.e. the client has to be configured the same way.

The userguide should have a big fat warning in this section:
"USE OF beanMapping OR typeMapping TIGHTLY COUPLES YOUR CLIENTS TO THE AXIS PLATFORM AND THE JAVA IMPLEMENTATION LANGUAGE"

i.e. only Axis 1.x/Java clients can use your web services now (and only if you provide them the mapping configuration and/or custom (de)serializers which cannot be part of the WSDL) (Even Axis2 can't deal with these services).

Please take the time to look over the following topics
Working With Complex Data Types
Going crazy with webservices
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting error in deserialization of object on client side
 
Similar Threads
NEWBIE question on created test client in Eclipse
Webservice in Weblogic
WSAD 5.1.1 SOAP RPC return type of Object[]
java.text.ParseException in Web service
stateless session bean and web service