serviceLib.getCurrentCallbackResponse()
returns (result HTTPResponse)
The invocation returns a record that is based on the Record part HTTPResponse,
which is provided for you and has the following fields:
- body, type STRING?
- The value returned from the service;
- In the case of a REST service, body contains
the value in one of three formats (XML, JSON, or NONE), as described
in “Creating an Interface part to access a REST service.” In the case
of an EGL REST-RPC service, the format is JSON.
- In the case of a web (SOAP) service, body contains
the returned SOAP message, which the EGL Rich UI proxy converted to
JSON format.
- headers, type Dictionary
- headers contains a set of name-value
pairs. Each entry key in the dictionary is the name of an HTTP header
that is returned from the service, and the related value (a string)
is the value of that header.
- status, type INT
- status contains the HTTP status code
in the response.
Important status codes include 200 (OK) and 404
(Not Found). For a complete list, go to the website of the World Wide
Web Consortium (http://www.w3.org/)
and search for "HTTP status code."
- statusMessage, type STRING
- statusMessage contains the HTTP status
message in the response.
Important status messages include OK (code
200) and Not Found (code 404). For a complete list, go to the
website of the World Wide Web Consortium (http://www.w3.org/) and search for "HTTP status code."