Are you asking if it is better to return a Java Object or an XML Element?
If so, are you ever going to have non-Java clients to this service? If so,
you are better returning the XML.
If your clients are all Java, then it will be easier to work with a Java
Object on the client side than it is to work with XML objects.
-----Original Message-----
From: Khamesra, SandeepX [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 1:57 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Which is better design
Guys,
I need some of your advice and suggestion..
If I need to return a set of information from a java service and
this information is scattered in different java classes.. Which is better
Get all the information from all the classes and formulate a XML and
return single XML element from the function or return one big object and
SOAP serializes it to XML data ..
I would appreciate your help..