[Logo]
Forums Register Login
In Axis, how to support java.util.List types ?
In Axis, how to support java.util.List types ?

Thanks
There's no direct way to use Java data types with web services, as that would undermine the cross-platform compatibility. You could transform the list into an array (which is supported), or -alternatively- embed a serialized representation (either binary of XML) if compatibility isn't important to you, although I would advise against that.
There is absolutely no reason to use the functionality of a List in a web service. Like Ulf said, use an array. The classes implementing List have excellent and fast toArray() methods.

In all likelyhood, a client of your web service will NOT need the List functionality, but if it does there are fast constructors that take arrays.

Bill
The knights of nee want a shrubbery. And a tiny ad:
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html


This thread has been viewed 1627 times.

All times above are in ranch (not your local) time.
The current ranch time is
Dec 12, 2018 20:39:32.