Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting error in deserialization of object on client side

 
naveen jain
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic