07-21-2010 02:21 AM
i have a web service which returns me with some JSON response.
if the json resonse size is large device/simulator doesnt receive any data.
this issue comes only in blackberry 5.0 OS. When I run it on 4.7 OS devices it runs smooth.
would be of great help if anyone of you can provide with some positive inputs.
also want to know is their some size limit on http response?
07-21-2010 02:56 AM
There is indeed a size limit on http responses. It varies depending on the connection route (whether it goes through MDS or BIS, what the server settings are, whether transcoding is taking place, and possibly other factors). If you hit that limit, you will get a 413 http response code. See this knowledge base article for more information. Be aware that in practice, you can see 413 errors with much smaller responses from the server than are stated in that article. Others on this forum have advised limiting responses to 64K to be safe.
If this is a problem, there are several common approaches, not all of which may be viable for your particular situation:
12-06-2010 01:33 AM - last edited on 12-06-2010 08:15 AM by KarlaDJR
Hello, can you please send me the code to receive JSON response from web service in blackberry 4.7. I am trying that for some time now and by far unsuccessful.