[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTP_URL_POST
Tony,
Is there a reason you're using http_url_post() instead of
http_post_stmf()? The latter routine is designed to read IFS files and
send them over HTTP. So there's no reason to do stuff like copy your
file into a user space, et al...
However, if I had to guess at why your program doesn't work, it's
because you're accepting a 50 byte parameter. If this is called from
the command line (or a literal in a CL program, or a SBMJOB...) this
will cause variables in your program to be corrupted, unless you make
sure you're passing 50 bytes of data.
Either way, though... this is not a problem with HTTPAPI. The code you
are having trouble with is inside your RPG program, it's not in
HTTPAPI. You are building a pathname in your program, and passing it to
the IBM stat() API, and when that fails, you get the message you cite.
You aren't even calling HTTPAPI when you get it -- so it can't possibly
be a problem with HTTPAPI.
-SK
On 12/18/2014 8:06 PM, Tony Cesarios wrote:
i,
Have an issue when trying to use the command HTTP_URL_POST with a generic
STMF file, that the program returns back with "Can't find stream file"
error. However if the name is a static one it works fine.
I want to have a generic name as multiple people will be creating a XML
message in the IFS and then sending to a third party waiting for approval of
payment.
I've attached a copy of the actual program and if any suggestions on how to
get around this would be gratefully appreciated.
Regards,
Tony Cesarios
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------