File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes return complex types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "return complex types" Watch "return complex types" New topic

return complex types

Georgia Matheou

Joined: May 28, 2008
Posts: 9
Hi, i have a web service that takes two double numbers and returns complex type

Can you suggest any ideas how to return this as a string so the client can read it?

Thanks a lot,
NarendraBabu Bandaru

Joined: May 17, 2008
Posts: 20
You can use JAXB here. You can convert the complex class object to string object and send it as a string.

But you need to have a XSD file for the complex object. and the same complext object XSD file should be there at the client side also.
I agree. Here's the link:
subject: return complex types