|
I need to talk to a web service to which I can send and receive files,
search info, and UUIDs. The UUIDs are then used to build a URL that I
hope I can show on a green screen, have staff click and launch the
browser. It uses both POST and GET, and in one of the POST APIs I send
a MIME request that has a binary file, and textual attribute pairs that
look like JSON.
I wrote some proof of concept code in Python - it was surprisingly quick
to do with the requests library. That Python works on my 7.3 machine in
PASE.
Now, I want to shoehorn that into my existing green screen inquiry
program. I would like to do this:
RPGLE -> search criteria -> Python -> UUID -> RPGLE
RPGLE -> UUID -> Python -> binary file -> RPGLE
RPGLE -> MIME/text/binary file -> Python -> UUID -> RPGLE
Is this a fool's errand?
Should I just learn how to do the equivalent on the green side?
I'm a 40-year RPG programmer, and I felt more comfortable trying this in
Python instead of... I don't even know what options are available on
green screen, and I'm afraid that doing the research to find out will
take longer than proofing it in Python did.
Feels weird, man.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.