HTTP_SIMPLE_INBOUND Response limit??

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

HTTP_SIMPLE_INBOUND Response limit??

Post 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 20276 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 20276 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 20276 times
Does anyone know if there is a limit in the Response of the HTTP_SIMPLE_INBOUND?

Kind regards,
René
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: HTTP_SIMPLE_INBOUND Response limit??

Post 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 20269 times
Post Reply