*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Don't get me started about those stupid light bulbs.
 
subject: return complex types
 
Similar Threads
Access Modifiers
Doubt in RHE page 78(new edition)
Access Modifiers
why this code fragment is illegal?
modifiers