[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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
<[1]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(
� � � � � � � � � � � � � � �'[2]http://ch3dx016548/SubmitOrder':
� � � � � � � � � � � � � � � %addr(data):
%len(%trim(data)): <--
� � � � � � � � � � � � � � �'application/json')
� � � � � � � � � �if� � � � rc <> 1
-----Original Message-----
From: [3]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:[4]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:
[5]https://urldefense.proofpoint.com/v1/url?u=http://www.scottklemen
t.com/mailman/listinfo/ftpapi&k=zMDK2T0y1%2FBQUHBrMdiYKg%3D%3D%0A&r=
RNq1TxbtXPeQTQTp%2Fom09QtFL1HIwnbpM5kCStCEzjo%3D%0A&m=wu1mhrqg29IWlh
11lfFAG72W3TrZ984She2Lv88yXCg%3D%0A&s=d321f1bce69a685ea111b7f4243499
a5fe06be52703bc1b60bb9a31ffa7b4e3a
--------------------------------------------------------------------
---
-----------------------------------------------------------------------
This is the FTPAPI mailing list.� To unsubscribe, please go to:
[6]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. mailto:TTaylor3@xxxxxxxxxxxxxxxxxxx
2. http://ch3dx016548/SubmitOrder
3. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
5. 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
6. 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
-----------------------------------------------------------------------