Skip to Content
0
Former Member
Feb 07, 2006 at 11:59 AM

Web service with complex java type

16 Views

Hi,

I create a web service method with String o with Array of Strings without problem. Now I nedd to create a ws that return a table, so I create a class like this:

public class User {

private String Name;

private String.Surname;

public void setName(String setName){

Name= setName;

}

public void setSurname(String setSurname){

Surname=setSurname;

}

}

In my ws class I use this object:

public User[] getUser(String a){

User[] user = new User[10];

for (int i=0;i<10;i++){

User<i>.setName("aaa");

User<i>.setSurname("bbb");

}

return user;

}

When in WebService Perspective I try to create my ws in wizard mode I see method getUser but I can't check it

Where is error?

Thanks

Andrea