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

RE: Web Service using HTTP_URL_POST_STMF-Need example of target server program to receive xml file and return a xml file to the source



We have multiple iseries and we past data between them.  I am writing a web
service to payment data form server1 (source) to server2 (target) using the
HTTP_URL_POST_STMF.  The web service on server1(source) sends a xml file to
server2(target).  I believe the program doing the HTTP_URL_POST_STMF is
actually sending the file to server2(target).

What I don't know how to do is write the program to receive the xml file on
server2(target).  Is the xml file to be accessed on server2(target) by
reading stdin?  I have written a HTTP_GET sending a filename to
server2(target) and writing a program on server2(target) to populate the
file using stdout.  This seems to work great.

Thanks,
Ric Turner
Jano Justice Systems, Inc
601.362.7601 ext. 224
800.250.9884 ext.224

The preceding e-mail is privileged and confidential and is intended only for
the named addressee.  If you received this message in error, please delete
it and notify the sender by return e-mail or by phone at the numbers noted
above.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Monday, February 22, 2016 9:33 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Web Service using HTTP_URL_POST_STMF-Need example of target
server program to receive xml file and return a xml file to the source

Ric,

What do you mean by "TARGET" server?  Are you referring to Target
Corporation (the department store chain)?  If so, I have not worked with
them before.  Do they not provide you with documentation?

Or do you just mean a web service provider?  If so, then there are about a
billion variations on how they work, each one is different from the next.
You'll need to talk to whomever runs the server to get information.

-SK

On 2/19/2016 9:31 AM, Ric Turner wrote:
>      [cid:image001.jpg@01D16AF8.417ED5C0]
>
>     I am creating a web service to send xml data to a target server and
>     want to get back a file with xml data.  I have written an RPGLE
program
>     to use the HTTP_URL_POST_STMF on the source server to send a test IFS
>     file with xml but I am confused as to what to write on the TARGET
>     server to receive the xml file and send some xml back to the source
>     server.  Does anyone have an example of the TARGET server process that
>     receives the xml file and populates an xml file to return to the
SOURCE
>     server?
>
>
>     Any help on this matter is greatly appreciated.
>
>
>     Thanks,
>
>     Ric
>
>

-----------------------------------------------------------------------
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
-----------------------------------------------------------------------