on 01-19-2005 2:52 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.