Extended HTTP Requests
DETAILS: Extended HTTP Requests
Details
This building block enables the execution of HTTP requests from ADOxx or an ADOxx based modelling tool using AdoScript. It provides several procedures, which allow to perform a variety of different options to access resources and services. The procedures use several parameters to handle things like credentials, headers, the content body and response code for both requests and their responses.
Have a look at the following video/screencast to see the building block in action! For more information on the application, please visit http://austria.omilab.org/psm/content/bee-up/info?view=scenarios
This implementation uses a Dynamic Link Library (DLL), which is called by the provided AdoScript procedures. As such, the actual HTTP request is performed from the DLL and the AdoScript procedures, and provides a neat interface to the DLL. The DLL has been compiled using Free Pascal and some of its units/libraries. The following features are provided by this building block: The following image shows the components and their interaction when performing an HTTP call. The Custom AdoScript is the part that uses this building block. It wants to access something from the Web, Internet or any kind of accessible network using the Hypertext Transfer Protocol. To achieve this, it invokes the provided AdoScript procedures. The Building Block AdoScript Procedures is the AdoScript provided with this building block. It makes several procedures available to simplify calling the DLL, like using AdoScript maps to handle the HTTP request/response headers. The HttpRequestDll is the DLL provided with this building block, which opens a connection, sends the request to the desired endpoint on the Web, Internet or any kind of accessible network and waits for the response to return it. It provides several functions which are available through the C type calling convention. How does it work?
Features and Functionality
Technical Setup
The ADOxx / ADOxx Modelling Tool is the environment where the AdoScripts are executed and which handles the details of calling the DLL and receiving the result among other things, like creating and managing models.