[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: simple json post
Thanks Charles your advice adjusted my direction and I was able to send my JSON message
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Tuesday, April 28, 2015 9:06 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: simple json post
You'd better take another look at the http_url_post parms...
D http_url_post PR 10I 0
D peURL 32767A varying const options(*varsize)
D pePostData * value
D pePostDataLen 10I 0 value
D peFilename 32767A varying const options(*varsize)
D peTimeout 10I 0 value options(*nopass)
You seem to be using 'application/json' as the value for the 4th parm which is supposed to be the IFS file name to write the results of the POST to.
Charles
On Tue, Apr 28, 2015 at 8:56 AM, Taylor, Thomas (LMF) - contr < TTaylor3@xxxxxxxxxxxxxxxxxxx> wrote:
> Hello Scott,
>
> I believe the file I am processing is sourced from a Json message in
> data queue JWRK EVAL into data. In debug when stopped on "Post" data
> contains my JSON message so I do not know what file it is referring as
> my objective is to write this data to Post_URL '/SubmitOrder' .
>
> Thanks
>
> Thomas
>
>
>
>
> /free
> *inlr = *on;
> in *dtaara;
> data = Jwrk;
> /end-free
>
> eval rc=http_url_post(
> 'https://urldefense.proofpoint.com/v1/url?u=http://ch3dx016548/SubmitOrder%27:&k=zMDK2T0y1%2FBQUHBrMdiYKg%3D%3D%0A&r=RNq1TxbtXPeQTQTp%2Fom09QtFL1HIwnbpM5kCStCEzjo%3D%0A&m=uXB6qrhJLm9MBOt5wr%2BnX7A8K6GV6dQY9M9CMZDrlJs%3D%0A&s=98787b728a40747678d38b19f2bdc5bd882502595333bddc5cadfd791196a68a
> %addr(data): %len(%trim(data)): <--
> 'application/json')
>
> if rc <> 1
>
>
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
> Sent: Tuesday, April 28, 2015 2:56 AM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: simple json post
>
>
> It's telling you that it can't open a file because either the IFS path
> (directory) or file that you specified cannot be found. (Not sure why
> i'm telling you this since you just told me that in your message, so
> you obviously already know that.)
>
> Is that not the case?
>
> Can you explain why you think that's not the case?
>
>
> On 4/27/2015 1:02 PM, Taylor, Thomas (LMF) - contr wrote:
> >
> > Hello,
> >
> >
> > I am trying to write a simple HTTP_URL_post using a preformatted
> > message from dataq. When program executes post I receive RC=-1
> > with this text "open(): No such path or directory". Thoughts.
> > Thanks
> >
> >
> > Thomas
> >
> >
> >
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. To unsubscribe, please go to:
>
> https://urldefense.proofpoint.com/v1/url?u=http://www.scottklement.com
> /mailman/listinfo/ftpapi&k=zMDK2T0y1%2FBQUHBrMdiYKg%3D%3D%0A&r=RNq1Txb
> tXPeQTQTp%2Fom09QtFL1HIwnbpM5kCStCEzjo%3D%0A&m=wu1mhrqg29IWlh11lfFAG72
> W3TrZ984She2Lv88yXCg%3D%0A&s=d321f1bce69a685ea111b7f4243499a5fe06be527
> 03bc1b60bb9a31ffa7b4e3a
> ----------------------------------------------------------------------
> -
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. To unsubscribe, please go to:
> https://urldefense.proofpoint.com/v1/url?u=http://www.scottklement.com
> /mailman/listinfo/ftpapi&k=zMDK2T0y1%2FBQUHBrMdiYKg%3D%3D%0A&r=RNq1Txb
> tXPeQTQTp%2Fom09QtFL1HIwnbpM5kCStCEzjo%3D%0A&m=uXB6qrhJLm9MBOt5wr%2BnX
> 7A8K6GV6dQY9M9CMZDrlJs%3D%0A&s=379373e0d964f83ef2f87744a2c48eb955298eb
> 1f08a5f591f7397fb29af2bb0
> ----------------------------------------------------------------------
> -
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------