Thanks a lot Ron.
Clients typically going to want the whole block as XML, i have implemented the Chunk model but its goes very slow.
What are other ways those can enable me to send Lacs of records to the client? Client may be PHP, .NET, Java etc.
With Warm Regards,
Muhammad Iqbal
Cell#: 0092-300-9377801
[EMAIL PROTECTED]
From: "Ron Reynolds" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [axis2] How to control response Serialization
Date: Fri, 30 Sep 2005 14:52:31 -0700 (PDT)
>you might consider sending it as a binary attachment (never tried, only read about it) or, if you want to return it
>within the XML, you can first serialize the object tree into a byte[] and then Base64-encode it (which will make it a
>about 30% larger) and embed that into the XML as a very big block of text). or you might consider an approach other
>than web services for this particular call or breaking the API into smaller operatiosn (instead of returning one big
>lump of data perhaps it can be accessed in pieces - are clients typically going to want the whole block or just pieces
>of it?).
>
>...............ron.
>
> >
> > my web service returns a very huge result, that going to send to the client. when it retuns result it goes out of
> > memeory and slow performance. I my service should directly seririalize result to the output stream as in java servlet
> > e.g.; out.writel(myOMElement);
> >
> >
> >
> >
> > With Warm Regards,
> >
> > Muhammad Iqbal
> > MCIT, DCS, SCJP, MCP (.NET)
> > Etilize Inc.
> > Cell#: 0092-300-9377801
> > [EMAIL PROTECTED]
>
>
