Scott, Attached is a sample RPGILE that I wrote that gets XML data from my FleetSuite Server. Upload to your AS400 and compile CRTBNDRPG PGM(LIBHTTP/POSTALK) SRCFILE(LIBHTTP/QRPGLESRC) To run call postalk -----Original Message----- From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On Behalf Of Scott Klement Sent: Friday, February 27, 2004 4:02 PM To: ftpapi@xxxxxxxxxxxxx Subject: Re: http_url_post_raw api does not think it received valid data when it really did Sender: Scott Klement <klemscot@xxxxxxxxxxxx> Hi Tom, Is it permissible for me to try connecting to this URL to see if I can reproduce the problem? On Fri, 27 Feb 2004, Tom Carriere wrote: > > Hey all, > > I finally was able to the http_url_post_raw api to work. > > The http_url_post_raw api does not think it received valid data when it > really did. > > When using the debugger > and tracing into the http_url_post_raw, it thinks that it > did not receive data when it really did because the call back > procedure INCOMING receives control beforehand and > it really does have the correct data after it gets converted > to EBCDIC. Did somebody fix the http_url_post_raw api > and I am not aware of this? > > In the interim, I ignore the return code > from http_url_post_raw > > eval rc = http_url_post_raw( > 'http://172.21.10.17/fleetsuite.asmx/' + > 'GetDirFromAdrToAdr?' > : %addr(data): %len(%trimr(data)) > : 1 > : %paddr('INCOMING') > : 10) > * : 'application/x-www-form-urlencoded') > *** if rc <> 1 > > ------------------------------------ > Tom Carriere > Principal > ALK Technologies Inc. > 609 252 8122 > carriere@xxxxxxx > ------------------------------------- > > ----------------------------------------------------------------------- > This is the FTPAPI mailing list. To unsubsribe from the list send mail > to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr > ----------------------------------------------------------------------- > ----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubsribe from the list send mail to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr -----------------------------------------------------------------------
Attachment:
postalk.rpg
Description: Binary data