permaculture playing cards
The moose likes EJB and other Java EE Technologies and the fly likes AXIS PROBLEM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "AXIS PROBLEM" Watch "AXIS PROBLEM" New topic


Gabriel Smith

Joined: Nov 14, 2005
Posts: 7
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???...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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 ]
I agree. Here's the link:
It's not a secret anymore!