• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting error in deserialization of object on client side

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic