Hi,

        I have a method in my soap service which returns a large XML data as
a string value. (the data is greater than 1 MB in size) Now, the method
returns the string but the client never gets the data. (May be it will get
the data after a very long time, which is not acceptable). I assume that the
client (Apache SOAP client libs) is parsing all the XML data which is
returned, causing the delay. A non-xml string of the same size gets to the
client in a short time. Is there any solution for this problem ? I have
tried wrapping data in CDATA tags. That doesn't work, I don't know for what
reason. I read that using xml-literal encoding style would solve the problem
and tried to set the encoding style in my client code. When I do that, the
server throws an exception  - " Fault Code   = SOAP-ENV:Server Fault String
= java.lang.IllegalArgumentException: I only know how to serialize an
'org.w3c.dom.Element'.". If anybody knows how to solve this issue, please
respond.

thanks,
Mohan


Reply via email to