Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello guys,
I've a service developed using TOS ESB 6.4.1 which must call an other service exposed by a data provider to get informations about some companies (I can't give more details).
Anyway, sometimes the JSON response size is "normal" and everything works fine but sometimes, depending on the company size, the response is really huge: for example, 26 Mb Mo with a formatted JSON composed of 565,750 lines!
In this case, tHttpRequest never ends.
I've also tried with tRESTClient with the same problem.
When I call this service using Postman everything works fine, so I can say the called service is not the problem, only the response size is the problem.
Any idea of how I can deal with such a huge JSON response?
Problem has been solved by the data provider himself by reducing the response size.
Thank's guys.
Did you try streaming the HTTP response? If you write it in Java you can stream it so the response is not read into memory fully. That might be your issue, not sure.
https://stackoverflow.com/questions/11710683/stream-a-http-response-in-java
Problem has been solved by the data provider himself by reducing the response size.
Thank's guys.