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

RE: simple json post



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(                
                             'http://ch3dx016548/SubmitOrder':
                              %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=RNq1TxbtXPeQTQTp%2Fom09QtFL1HIwnbpM5kCStCEzjo%3D%0A&m=wu1mhrqg29IWlh11lfFAG72W3TrZ984She2Lv88yXCg%3D%0A&s=d321f1bce69a685ea111b7f4243499a5fe06be52703bc1b60bb9a31ffa7b4e3a
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------