aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "return complex types" Watch "return complex types" New topic
Author

return complex types

Georgia Matheou
Greenhorn

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,
Geo
NarendraBabu Bandaru
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: return complex types