Skip to content
Advertisement

JAVA RMI wrong return type generated by WSimport tool

I am building a web service that includes some methods to do a specific job here is one of the web inferface methods:

JavaScript

this method should return an array of DatingUserInfo the implimentation of this method is:

JavaScript

in the client-side when running the WSimport tool to get the required file I get this in one of the generated files:

JavaScript

the returned type is List instead of DatingUserInfo[], what could cause that to make WSimport generates a wrong code?!

thanks in advance.

Advertisement

Answer

WSimport tool automatically by default replaces returned arrays to lists.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement