Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341674

Summary: Web service issue
Product: [WebTools] WTP Webservices Reporter: er.shwetabhaskar
Component: jst.wsAssignee: Project Inbox <jst.ws-triaged>
Status: RESOLVED INVALID QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3 CC: daniel_megert, david_williams
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description er.shwetabhaskar CLA 2011-04-01 16:45:11 EDT
Build Identifier: 20100218-1602

It works fine for me if I have any number of functions with a return type of  primitive data type. I am using eclipse, I tried tomcat 5,6,7/glassfish and am using Axis.
I created a new project right click on my abc.java and select web service I selected to generate both client and server but it complaints about me trying to return object, Arraylist  I am trying to do this as through my function I am trying to fetch data through database . I will return data in a resultset form and am not sure how I should return it to be able to make it work. Urgent. ASAP PLEASE


Reproducible: Always

Steps to Reproduce:
1.A CLass with methor of return type arraylist
2.right click and try to create web service
3. The method "test" on the service class "test.test" uses a data type, "java.util.ArrayList", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result.
Comment 1 Dani Megert CLA 2011-04-02 02:13:03 EDT
Maybe this is WTP?
Comment 2 Keith Chong CLA 2011-05-10 13:54:58 EDT
This is a JAX-RPC limitation.  Try wrapping your collection types.  Or, use JAX-WS.