Use the Contact form and make an enquiry.
Regarding material on this page, enquire for:
For students, teachers, engineers and ego-free programmers.
include_path = ".:/homepages/8/d513739477/htdocs/ZendFramework-1.12.17/ZendFramework-1.12.17/library"
Zend/Rest/Server.phpand client file is UnitsConv.php that requires
'http://awebserver/unitsserver.php?method=MeasurementUnits&Quantity=PhysicalQuantity'so as to get list of available units for given physical quantity, like length units 'foot,inch,metre...'
Delphi (Win32) app - Delphi project files and executable, UnitsConvRESTClient.exe, zip file download here. This desktop app gets the interchangeable unit conversions from UnitsServer.php. In the zip file, program notes explain how the app, for development purpose, is addressed to http://localhost/UnitsServer.php, and how this addressing can be changed for further test/dev or production purposes. In Delphi, the app acts as HTTP client by using non-visual Indy sockets component, TIdHTTP, and the app uses the non-visual component TXMLDocument to accept the XML GET query. To parse the XML (to obtain units conversion comma separated results), Delphi code is taken from the Marco Cantù Delphi REST Clients Collection - Section 01: RssClient; there is a sleep() call (variable in GetNodeVal() function) to (in the words of Marco Cantù) avoid getting too fast of a rate (which will block the service).
Many commercial Web Services using the REST protocol - Web Services Directory at ProgrammableWeb.com. To access these services directly, sample URL's with query strings together with typical response XML or CSV should be given. Then PHP Client can readily be written to provide web app UI for the web service.
'Abbreviations.com is the world's largest and most comprehensive directory and search engine for acronyms, abbreviations and initialisms on the Internet. Abbreviations.com holds hundreds of thousands of entries organized by a large variety of categories from computing and the Web to governmental, medicine and business and it is expanding daily.'
Abbreviations.com provides a good number of Web Services:
Above web app, Definitions from Abbreviations.com, is prototype Web Services client, communicating with Abbreviations.com that accepts GET requests made simply using a URL and query string such as http://www.stands4.com/services/v1/abbr.aspx?tokenid=tk324324324&term=asap (this example taken from abbreviations.com, denoting a request to 'abbreviations' for definitions of 'asap').
Client programs, with user interface, have to take user inputs, build and transmit the query URL's accordingly, then respond to and display the information returned. For Abbreviations, Conversions, ZIP Codes, Synonyms, Definitions, Phrases, Rhymes and Quotes: API web pages are provided by Abbreviations.com. In their words: 'Each one of these pages gives the programmer an immediate and fully comprehensible reference, citing the request URL and parameters, sample request URL, Response elements, and Sample Response, a snippet of XML that has to be parsed (interpreted) by the client program to drill down to detailed results required'.
Defintions from Abbreviations.com - PHP programming is available here, Zip file, including program notes. In the Zip file, two versions of this Delphi for PHP web app, one using Xajax, making ajax requests to Abbreviations.com. Should be good (or useful, with or without D4PHP) for many different RESTful web services clients.
Powered by World Weather Online
World Weather Online, accurate and reliable weather forecasts - Free 60-day trial using API Key - Local Weather REST API enables return of weather data in response to requests as shown in the API Explorer.
Above client program works by sending Request URL assembled from user inputs so as to get CSV output as returned in legacy API Request Builder with sample entries and Format CSV selected. This web app uses the Delphi for PHP VCL (Visual Component Library) - all souce code (and program notes) available for download here. With or without Delphi, the one PHP file, worldweather.php (in download) should be useful in discovering a method of accessing World Weather Online.