The Call Setup API supports JSONP as follows:

For both successful and unsuccessful requests, the response body will contain a JavaScript function call where the name of the function is specified with the callback request parameter. For example, if the function name specified in the callback request parameter is processResponse then the response body should be:

processResponse({"param1":"value1", "param2":"value2"});

where param1, value1, param2, and value2 are the JSON attribute names and values for the response.

In the case of successful requests, the expected JSON attributes for the response are passed as parameters of the function call.

In the case of unsuccessful requests, there are two JSON attributes passed in the function call. These are:

Attribute Name

Data Type

Description

statuscode

Number

Holds the HTTP status code for the response. For example,

404, 403, 400.

reason

String

Reason for the unsuccessful request.

Further information specific to the method is in each of the following sections.


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices