[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which procedure for non-XML document
Lorne,
HTTPAPI knows how to encode and send name/value pairs. Look at the
EXAMPLE2 member for a sample of that.
If what you say is accurate, you will get back a response of name/value
pairs. (That's an unusual thing -- first time I've heard of someone
doing that.) HTTPAPI will give them back to you as a file or callback.
where the results will be in all one string. It'll be up to you to
extract the data you need from that string (though, I would think that
would be pretty easy to do.)
Sturgeoff, Lorne wrote:
> 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
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------