• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh


Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys...

I have a problem with the techologies that i'm using to develop my project....

- Axis: i'm using axis to make Web Services but i have a throble, i want that the web sevice get to response an java object but in that point i have an exception, because the class doesn't be serializer, i don't know how to make this class serializer (there are two methods that i don't know configure), is that no enougth if the class is serializable???...
Posts: 43028
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello "G GL"-

Welcome to JavaRanch. First off, there's a naming policy for screen names here. Yours does not conform to it - please change it.

As to your question, no, being Serializable is not enough. Web services don't transport serialized Java objects over the wire for various reasons, one of them being that that would make it incompatible with non-Java web services (which can't read Java objects).

If your object follows Java bean rules, you can use the BeanSerializer that's part of Axis. If not, you'll have to create a custom serializer. The Axis user guide describes how to do that.
[ November 19, 2005: Message edited by: Ulf Dittmer ]
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic