cancel
Showing results for 
Search instead for 
Did you mean: 

Help : Complex parameter and return value in WebService?

Former Member
0 Kudos

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??

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

zubev
Employee
Employee
0 Kudos

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