aspose file tools*
The moose likes Web Services and the fly likes Need to return a ValueObject from a Service . Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need to return a ValueObject from a Service ." Watch "Need to return a ValueObject from a Service ." New topic
Author

Need to return a ValueObject from a Service .

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I am writing a web service which basically accepts a ConsumerId , and in turn i am returning the Consumer Details in the form of an COnsumerVO with the data set on to it .

Please tel me what is the appropaite way of returning this ConsumerVO .

Please share your ideas .


Save India From Corruption - Anna Hazare.
somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Ravi Kiran V wrote:Hi

I am writing a web service which basically accepts a ConsumerId , and in turn i am returning the Consumer Details in the form of an COnsumerVO with the data set on to it .

Please tel me what is the appropaite way of returning this ConsumerVO .

Please share your ideas .



Hi
You have declared ConsumerVO as a "complex type" in schema of your web service. In output operation of web service, you choose this complex type. Then the return type of your web service will be an object.

Hope this will be the solution of your problem.

Best Wishes
 
 
subject: Need to return a ValueObject from a Service .
 
Similar Threads
issue while getting the value from JSON string
Getting Null Response in client when server is sending the proper response
Web Service Creation With AttachMent
Problem with getScheme()
Implimenting Collections In WebServices