As i said , i am trying to return all the Peoples data of that region by returning an Object Array as you mentioned .
(An Array consisting all the People details).
This is my sample code of it .
All this is inside my EJB Implementation code
This is the way i am going to implement , please suggest me if there is anything wrong , as i have seen some code which is making use of @WebResult and i am not making use of it .
Please tell me whether using any @WebResult is necessary ??
Joined: Oct 04, 2006
I suggest that you return an array of Customer, instead of an array of Object.
If you are doing java-first development, then I suspect that there is no reason for using @WebResult, since, at development time, you have neither WSDL nor associated XML schemas.
If you are not happy with the default result of compiling the Java bean class Customer to an XML schema performed by JAX-WS, you may want to consider using JAXB annotations in the Customer class.