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

RE: Can HTTPAPI handle a response sent to a URL



That is what HTTPAPI does. It is client software - not server software. It sends data to web servers and retrieves the responses. It provides the plumbing so you can send

http://somecompany.com/tellmehowmanyareinstock/?product=foo 

using either GET (like shown) or POST which would probably be how you would SOAP this request. The SOAP message has to be built by hand or you can use WSDL2RPG to help get you there. In either case, download and run SOAPui to help if the request is complicated.

and receive back
<xml>
 <quantity>10</quantity>
</xml>

Parsing the xml can be done native using RPGLE opcodes or the EXPAT tool that is bundled in HTTPAPI (WSDL2RPG helps to create the code in templates to retrieve values as well). Using either method, you can get
qtyVariable = 10

Load it up, take the example programs in QRPGLESRC for a test drive, write your own program! It really is easier to do than trying to describe it in words. You will see this in the examples. Lean on us for assistance.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Kenny Keifer
Sent: Thursday, September 20, 2012 12:13 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Can HTTPAPI handle a response sent to a URL

Can HTTPAPI handle the soap request response sent to a specified URL?
I'm not running a web server on the iseries and would need the response
in a RPG program.

Kenny 

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------