This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 41599
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 ]

Ping & DNS - my free Android networking tools app
I agree. Here's the link: