Page 1 of 1

Sending Huge file to Client

Posted: Fri Nov 23, 2007 5:36 am
by phpcoder
Hi,

I got a soap service which query a database an returns a whole stock list to the client. The stock list can be in size from 800K to 1.5MB. Could somebody tell me which is the best of of returning these sort of data to the client. The client suppose to display the whole list on website suing HTML. As its a shopping cart. Please let me know which is the best way to do this.

Thanks

Posted: Fri Nov 23, 2007 10:29 am
by Kieran Huggins
a 1.5 MB shopping list? I must be mistaken....

Posted: Fri Nov 23, 2007 10:46 am
by superdezign
The "best" way would be a way that the customer could actually use. You generally want to avoid making customers do a lot of scrolling. If you give them a huge 1.5 MB list of items, chances are that they won't read the whole list.

You need to break things up into categories and sub categories, and then display the lists with pagination.

Posted: Fri Nov 23, 2007 2:50 pm
by Chris Corbyn
Is there a lot of repitition in the xml returned by your soap service? i.e if some orders 1000 of the same item does it appear 1000 times or do you specify a quantity?

Posted: Sat Nov 24, 2007 4:35 am
by onion2k
Stick it on a couple of DVDs and pop it in the post. Nothing could possibly go wrong.

:twisted:

Posted: Sat Nov 24, 2007 2:04 pm
by Kieran Huggins
pagination FTW