[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Which procedure for non-XML document
We have a requirement to communicate in real time with a web service
from an interactive RPG green-screen application. The web service
states that requests can be sent via HTTPS GET or POST of name/value
data in a way similar to an HTML FORM. Data is returned in the body of
the HTTPS reply as name/value pairs.
Note that this is not XML.
For example:
Send:
[1]https://www.blahblah.com/something.cfm?Method=Check&Username=userna
me&Password=password&, and so on.
Receive: TransactionId=XYZ1234567890& TransactionResultCode=7100&
TransactionMessage=Approved, and so on.
My question for the list is, what would be the appropriate HTMLAPI
procedure to call for this application? I was considering http_get()
but am reluctant to use it because I think it requires a stream file
in the IFS to hold the results. Since this application can be called
by several simultaneous interactive green-screen users, I want to
avoid using work files in the IFS. I would rather parse the name/value
pairs in an RPG variable. Is there a way to do this in HTTPAPI?
Lorne Sturgeoff
Allied Global Holdings Inc.
(905) 513-3517
[2]lorne.sturgeoff@xxxxxxxxxxxxx
References
1. https://www.blahblah.com/something.cfm?Method=Check&Username=username&Password=password&
2. mailto:lorne.sturgeoff@xxxxxxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------