aspose file tools*
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
Author

AXIS PROBLEM

Gabriel Smith
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
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 - updated with new look and Ping home screen widget
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: AXIS PROBLEM
 
Similar Threads
Problem in custom axis (De)Serializers
Axis fault: java.io.IOException: No serializer found for class
Generating with axis-java2wsdl a WSDLwith 2 PortType
HttpServletRequest instance transmission over Apache Axis
Using ResultSet as return Type in Web Services