Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341674 - Web service issue
Summary: Web service issue
Status: RESOLVED INVALID
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 16:45 EDT by er.shwetabhaskar CLA
Modified: 2011-05-10 13:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.