cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP serialization....

david_fryda2
Participant
0 Kudos

Hi,

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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

david_fryda2
Participant
0 Kudos

Hi,

thanks for the explanation. Si how do we return a JCO.Function class from a web service ?

Maybe I should do something else....

What are the classes (instead of ArrayList)that I can use to return a result that is serializable (like String)?

Thanks

Message was edited by: David Fryda

Former Member
0 Kudos

Hi,

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)

Answers (0)