[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: HTTPAPI examples
Sender: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>
>This is part of my problem; how can I present HTTPAPI without first
presenting other tools such as CGIDEV2 or an XML parser? It seems like
this won't work.
Yeah, most uses I would guess would be related to "Web Services" and
then inherently XML. Maybe we should combine HTTPAPI and XMLSAX into
one package ;-)
>The problem is, it's not public. You have to register with them, get a
developer key, etc.
It is similar to Amazon though in that it is free. I am trying to
remember if it was cumbersome to register or not. It has been over a
year since I consumed their Time In Transit web service.
One other idea that I use to test when I teach people is to put the
consumer and provider on the same machine. So in that case you would
use the HTTP API to make a request and then have a regular CGI pgm to
consume it and respond. You could use some simple XML messaging without
needing a parser or CGIDEV2. Take this request and response for
instance:
Request:
<Request>
<GetOrderLineItems>1132245</GetOrderLineItems>
</Request>
Response:
<Response>
<LineItem>Blue Hat</LineItem>
<LineItem>Red Coat</LineItem>
<LineItem>Green Shoes</LineItem>
<LineItem>Pink Underwear</LineItem>
</Response>
The consumer would send the request to the provider. The provider would
use %Scan and %Subst to get the order number (1132245) and would then go
to the order files and concatenate the line items into XML for a
response. The provider could also disconnect and respond async style,
but that would be a little much for a beginners tutorial:-)
Thoughts?
Aaron Bartell
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------