[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ftpapi] HTTPAPI http_string?



Hello all,

I just done a project not long ago using http_url_get to get a XML file from URL (put to IFS) which contains BASE64 data as an element then parse XML grab that BASE64 string, then use Base64_Decode to do decoding...

Now there is a new API, we will be getting Base64 string only instead of a XML file.
my question is do I still use http_url_get put a .txt file instead of .XML? or do I use http_string for this?

If the answer is .txt file, then how do I get the base64string from that .txt file? Or I can just simplely re-use my old project, still put in a .xml file, (in this case XML only contain base64 string, no other elements) remove xml-sax part or how do I handle it to get the string?

I prefer if we can use http_string to get the string straight from web URL if possible. anybody knows an example of it would be a lot helpful.

Thank you for any input.

Candice 

On Sep 18, 2020, at 4:29 PM, Zach Brown <ZBrown@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:



I got it fixed this morning the issue was I had an old cl from a previous version in QGPL. Once I called it from httplib specified it worked been using it all day. Thanks for all you do!

 

Zach Brown

Zach Brown

Director of Network Systems

Quest Pharmaceuticals, Inc.

T: 1(800)455-1248 x117

F: 1(888)627-6790

 

 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> On Behalf Of Scott Klement
Sent: Friday, September 18, 2020 5:19 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Ftpapi] HTTPAPI Not Installing V7R2M0

 

Hi Zach,

HTTPAPI is developed and tested on a V7R2 machine (that is my primary machine.)   I've not had the problem that you're showing, despite working with it nearly every day.

Could there be other programs named CONFIGR4 in your library list that it might be running by mistake?

Or, can you tell me how to reproduce the problem?  If I can reproduce it, I can debug it to see what is doing on.

Thanks!

 

On 9/18/2020 7:31 AM, Zach Brown wrote:

I’m getting the following errors when trying to run install CL looks like a parameters error on configr4. Any help would be great I’m trying to consume json for a project without having to use curl and the IFS>

 

Message . . . . :   Pointer or parameter error (C G D F).                    

Cause . . . . . :   RPG procedure CONFIGR4 in program QTEMP/CONFIGR4 at      

  statement 3235 had an error due to a pointer not being correctly set. The  

  cause of the error is most likely one of the following:                    

    -- A basing pointer was not set.                                         

    -- A procedure pointer was not set.                                      

    -- The pointer was set, but the object it referenced has been destroyed. 

    -- A parameter was not passed to the program containing the procedure.   

    -- A parameter was not passed to the procedure by its caller within the  

  program.                                                                   

    -- A pointer offset was greater than the size of the space the pointer was

  pointing to.                                                                

 

3>> CALL INSTALL                                                            

       5700 - ADDLIBLE LIB(QTEMP) POSITION(*LAST)                            

     Library QTEMP added to library list.                                    

       6900 - CALL PGM(QSZRTVPR)          /* The CALL command contains       

       parameters */                                                         

       9400 - CALL PGM(QSZRTVPR)          /* The CALL command contains       

       parameters */                                                          

      10600 - CRTDSPF FILE(QTEMP/CONFIGS) SRCFILE(*LIBL/QDDSSRC)             

     File CONFIGS created in library QTEMP.                                  

      10800 - DLTSPLF FILE(CONFIGS) JOB(*) SPLNBR(*LAST)                     

      11300 - CRTBNDRPG PGM(QTEMP/CONFIGR4) SRCFILE(*LIBL/QRPGLESRC)         

       TGTRLS(*CURRENT)                                                      

     Program CONFIGR4 placed in library QTEMP. 00 highest severity. Created on

       09/18/20 at 07:25:55.                                                 

Data area RETURNCODE created in library QTEMP.                         

 11600 - DLTSPLF FILE(CONFIGR4) JOB(*) SPLNBR(*LAST)                   

 12100 - OVRDSPF FILE(CONFIGS) TOFILE(QTEMP/CONFIGS) OVRSCOPE(*CALLLVL)

 12300 - CALL PGM(CONFIGR4)          /* The CALL command contains      

  parameters */                                                        

Pointer not set for location referenced.                               

Function check. MCH3601 unmonitored by CONFIGR4 at statement 0000003235,

  instruction X'0000'.                                                 

Pointer or parameter error (C G D F).                                  

Pointer or parameter error (C G D F).                                  

 

Zach Brown

Zach Brown

Director of Network Systems

Quest Pharmaceuticals, Inc.

T: 1(800)455-1248 x117

F: 1(888)627-6790



 

 



This transmission may contain information that is privileged, confidential and or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein including any reliance thereon is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. The company accepts no liability for any damage caused by the transmission of this email.
If you no longer wish to receive advertisements from Quest Pharmaceuticals, Inc., please call 800-455-1248 or send a fax to 866-627-6790 and provide the following information so we can process your request: your name, the name of your company (if applicable), your fax number(s) and/or email address(s), and that you do not wish to receive advertisements. Federal law requires that we honor your request within thirty (30) days.

 



This transmission may contain information that is privileged, confidential and or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein including any reliance thereon is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. The company accepts no liability for any damage caused by the transmission of this email.
If you no longer wish to receive advertisements from Quest Pharmaceuticals, Inc., please call 800-455-1248 or send a fax to 866-627-6790 and provide the following information so we can process your request: your name, the name of your company (if applicable), your fax number(s) and/or email address(s), and that you do not wish to receive advertisements. Federal law requires that we honor your request within thirty (30) days.




This transmission may contain information that is privileged, confidential and or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein including any reliance thereon is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. The company accepts no liability for any damage caused by the transmission of this email.
If you no longer wish to receive advertisements from Quest Pharmaceuticals, Inc., please call 800-455-1248 or send a fax to 866-627-6790 and provide the following information so we can process your request: your name, the name of your company (if applicable), your fax number(s) and/or email address(s), and that you do not wish to receive advertisements. Federal law requires that we honor your request within thirty (30) days.
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi