The OBWebResponse type is a return type for all Web Services calls that is used to process responses from Web Services calls.
Structure
- StringResponse: The body of the response in string format
- Response: The response object of the WebService
- StatusCode : The http status code of the response
- isOK(): A method that verifies that the response has http code 200. Returns a Boolean
Example
{
StringResponse: "OK",
Response: {
StatusCode: 200
},
function isOK(){} // true / false
}