WebServiceResponse

Contains all information about web service custom request execution result

Instance attributes

agentErrorCode: int

Agent error code (0 if the agent completed the request)

body: String

Response body. Alias for document.

document: String

Document that was returned by web service as a response to the request. For HTTP error responses, contains the response body.

errorMessage: String

Human readable error message set by server or agent (empty string if there is no error)

httpResponseCode: int

HTTP response code

statusCode: int

HTTP response status code. Alias for httpResponseCode.

success: bool

true if the agent completed the request and received an HTTP response, false if there was a problem on server or on agent (no connection, timeout, communication failure). HTTP error responses (4xx, 5xx) are reported with success set to true; check statusCode. An HTTP redirect that is not followed (following redirects is disabled in the web service definition, or redirect limit reached) is reported as a failure: success is false, agentErrorCode is set, and neither status code nor body is available (known issue, netxms#3773).