on 08-25-2004 1:27 PM
Hi guys
These days, I publish a WebService, in it there is an
operation like this:
List search(List para);
in this operation, parameter "para" is a java.util.List, which contains many elements, every element is an instance of customizing class "MyItem", I made "MyItem" implements java.io.Serializable interface. Strangely, when I call this operations in my java client,
I found that I could not get out every element from para in server-side, but para.size() is showing it contains 10 elements in it. The same thing happen to the return value of this operation, in client, I got an instance of java.util.List class as the return value, when I try
System.out.println(result.get(0)); it output "null", but
result.size() is 10, I don't know how to explain this
Does anyone who encounter this issue too?
I guess it has something to with the Serializable issue ,but I have made every List item serializable, why it looks like this??
Hi Alexander,
It would be helpful if you could let me know the procedure as to how to add custom types to the virtual interface and also code if any.
Thanks and Regards,
Amar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
I answered you by mail some days ago, but just to complete the thread, I am posting the hint also here:
Custom types should be manually added to the Virtual Interface, so that they can be serialized.
Best regards,
Alexander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.