This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Web Services and the fly likes Java webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java webservice" Watch "Java webservice" New topic

Java webservice

Akhil kumarS

Joined: Oct 16, 2007
Posts: 13
hi friends..

I would like to use a java web service in my c# application. when the java webservice returns a string it is available in the c# or j# application but when it returns an arraylist it is not available. i need a result set from web service. I iterate through result set and append the content to arraylist. But when I returns the arraylist it is not available in c#. I think it is because in c# arraylist does not implement ISerialisable interface but in java it does. so How can i get the array list in c# as a return type of java webservice
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45415
Hardly a beginner's question . . . moving.
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
Assuming you are using J2EE, you might want to read chapter 5 of JAX-RPC specification which defines what kind of data can make up web service inputs and outputs. ArrayList is NOT one of them. You need to define an array. The array must be of a valid data type - primitive types, java beans of primitive types and more, look it up. - Coming soon!
I agree. Here's the link:
subject: Java webservice
jQuery in Action, 3rd edition