You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Lev Gelfer <le...@db.com> on 2002/01/17 01:36:37 UTC

Performance

I need to send an XML document to a client. What would be faster: to serialise DOM tree to the client (if 'yes' than how can I do it) or to convert DOM tree to a String and send it to the client (that what I do currently). I suspect that the second method is not as efficient as it should be. Please let me know.

----------------------------------------------------------------------
Lev Gelfer
Global Credit Product, New York
            (212) 469-2229 (desk)
            (917) 686-3972 (cell)
            lev.gelfer@db.com (email)
----------------------------------------------------------------------


--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



Re: Performance

Posted by Gottfried Szing <go...@szing.at>.
On Wed, 16 Jan 2002, Lev Gelfer wrote:

>
> I need to send an XML document to a client. What would be
> faster: to serialise DOM tree to the client (if 'yes' than
> how can I do it) or to convert DOM tree to a String and send
> it to the client (that what I do currently). I suspect that
> the second method is not as efficient as it should be. Please
> let me know.

i think this is not a question of performance. its a question of
compatibility. because in the case that your are sending a dom
tree to the client he will has to install the same version of the
dom tree implementation that you are using. and this is sometimes
not possible.

i have implemented some servives (not especially with soap) which
returne non-standard java objects in their serialized form. was
a big problem if the client lib versions differs!

cu


Re: Performance

Posted by Gottfried Szing <go...@szing.at>.
On Wed, 16 Jan 2002, Lev Gelfer wrote:

>
> I need to send an XML document to a client. What would be
> faster: to serialise DOM tree to the client (if 'yes' than
> how can I do it) or to convert DOM tree to a String and send
> it to the client (that what I do currently). I suspect that
> the second method is not as efficient as it should be. Please
> let me know.

i think this is not a question of performance. its a question of
compatibility. because in the case that your are sending a dom
tree to the client he will has to install the same version of the
dom tree implementation that you are using. and this is sometimes
not possible.

i have implemented some servives (not especially with soap) which
returne non-standard java objects in their serialized form. was
a big problem if the client lib versions differs!

cu