Page 1 of 1

HTTP_SIMPLE_INBOUND Response limit??

Posted: Wed Jan 05, 2022 6:21 am
by René Houba
Has anyone had a problem like this??

In Composer 7 I use in a processing sequence the HTTP_SIMPLE_INBOUND, where the HTTP_SIMPLE_INBOUND returns a response file.
This all works OK for many years, but we see a strange behavior the last time.

Some tasks stay active:
HTTP_SIMPLE_INBOUND (1).PNG
HTTP_SIMPLE_INBOUND (1).PNG (462.7 KiB) Viewed 20277 times
But the log shows that the HTTP_SIMPLE_INBOUND end normally:
HTTP_SIMPLE_INBOUND (2).PNG
HTTP_SIMPLE_INBOUND (2).PNG (507.91 KiB) Viewed 20277 times
It seems now that all jobs with a Response > 4Mb have this problem and they stay in the ODOC_SEND directory of the Trading Partner:
HTTP_SIMPLE_INBOUND (3).PNG
HTTP_SIMPLE_INBOUND (3).PNG (341.53 KiB) Viewed 20277 times
Does anyone know if there is a limit in the Response of the HTTP_SIMPLE_INBOUND?

Kind regards,
René

Re: HTTP_SIMPLE_INBOUND Response limit??

Posted: Wed Jan 05, 2022 9:55 am
by Dino
I would think the HTTP_SIMPLE_INBOUND is using the HTTPSERVICE Integrator service, I dont see a limitation on size, as this test shows you can download for example a json file of 9 MB without problem using the HTTPSERVICE. Maybe a temporary/intermediate field in the middle somewhere creating this limitation in your COMPOSER example?

Code: Select all

Function Options(*DIRECT)

* Open service
Use Builtin(JSMX_OPEN) To_Get(#JSMXSTS #JSMXMSG #JSMXHDLE)
Execute Subroutine(CHECK) With_Parms(#JSMXSTS #JSMXMSG)

* Load service
#JSMXCMD := ('SERVICE_LOAD SERVICE(HTTPSERVICE) TRACE(*YES)')
Use Builtin(JSMX_COMMAND) With_Args(#JSMXHDLE #JSMXCMD) To_Get(#JSMXSTS #JSMXMSG)
Execute Subroutine(CHECK) With_Parms(#JSMXSTS #JSMXMSG)

* Access the URL localhost:8080/images/temp/superlargejson.json
#JSMXCMD := ('SEND HOST(localhost:8080) CONTENT(*JSON) URI(/images/temp/superlargejson.json) HANDLER(OutboundFile) METHOD(GET) WAIT(*YES)')
Use Builtin(JSMX_COMMAND) With_Args(#JSMXHDLE #JSMXCMD) To_Get(#JSMXSTS #JSMXMSG)
Execute Subroutine(CHECK) With_Parms(#JSMXSTS #JSMXMSG)

* Receive
#JSMXCMD := ('RECEIVE HANDLER(IFILE) CONTENT(*JSON) TO(c:\temp\receivedjson.json)')
Use Builtin(JSMX_COMMAND) With_Args(#JSMXHDLE #JSMXCMD) To_Get(#JSMXSTS #JSMXMSG)
Execute Subroutine(CHECK) With_Parms(#JSMXSTS #JSMXMSG)

* Unload service
Use Builtin(JSMX_COMMAND) With_Args(#JSMXHDLE 'SERVICE_UNLOAD') To_Get(#JSMXSTS #JSMXMSG)
Execute Subroutine(CHECK) With_Parms(#JSMXSTS #JSMXMSG)

* Close service
Use Builtin(JSMX_CLOSE) With_Args(#JSMXHDLE) To_Get(#JSMXSTS #JSMXMSG)
Execute Subroutine(CHECK) With_Parms(#JSMXSTS #JSMXMSG)

* Check routine
Subroutine Name(CHECK) Parms((#JSMXSTS *RECEIVED) (#JSMXMSG *RECEIVED))
If Cond('#JSMXSTS *NE OK')
Use Builtin(JSMX_CLOSE) With_Args(#JSMXHDLE) To_Get(#JSMXSTS #JSMXMSG)
* Exit
Endif
Endroutine
httpservice1.jpg
httpservice1.jpg (205.51 KiB) Viewed 20270 times