Skip to Content

SOAP serialization....


I am trying to return a JCO.Function class from the web service. Since it is not serializable, I added it to class that is serializable : the ArrayList class.

But I still get an exception :

SOAP Fault Error (n.a) : The Serializer for class java.util.ArrayList not found or not supported by the soap service!..

Thank you for the help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 03:16 PM


    Even if you add a the JCO.function to an ArrayList, the seralization of the ArrayList will depend on that it object it contains implements Serializable (the array list only forwards the serialization request to the objects it contains)

    The error message you get is that the portal doesn't have a serializer for the ArrayList class, and you probably have to code one on your own and define it in your soap.xml. But I can't imagine it would work anyway

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member David Fryda


      I don't really think you can return a JCO.Function from the webservice. If you need to do this you probably need to use RFC calls instead of webservice calls (but I don't know how to set that up).

      Could explain a bit more what you want to do ?

      You can use primitives such as string, int and so on, but also more complex types. I haven't got much experience in creating webservices in the portal so I don't really now how you can return more complex serializable elements. But have in mind that the calling party might not be a java client, and therefore the contents of the object you are sending should normally be sent as an xml structure (instead of "binary" data of a serialized java object)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.