Skip to main content

passing objects to web service

2 replies [Last post]
wakeup
Offline
Joined: 2005-07-19

I'm not sure which is the best form to passing objects in web services. How do you do it?

- Returning the class? public myclas exampleMethod()
- Returning a XML string? public string exampleMethod()
- Another form?

Thanks

__________________
http://www.hhdirecto.net
http://www.dechiste.com

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sandoz
Offline
Joined: 2003-06-20

> I'm not sure which is the best form to passing
> objects in web services. How do you do it?
>
> - Returning the class? public myclas
> exampleMethod()
> - Returning a XML string? public string
> exampleMethod()
> - Another form?
>
Check out the JWSDP tutorial:

https://sdlc6d.sun.com/ECom/EComActionServlet;jsessionid=7DC6106CAAEDFDD...
http://java.sun.com/webservices/downloads/webservicespack.html

It should help answer some of your questions,
Paul.

wakeup
Offline
Joined: 2005-07-19

Thanks, but it is a very long and teorethical documentacion about lot of thinks.
Apart from it, I'm doing webservices with AXIS.

I would like know what method you use return class or xml string.
Thanks