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???...
posted 10 years ago
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 ]