ServiceResponse class

Represents the standard response to an Exchange Web Services operation.
Implementers

Constructors

ServiceResponse()
Initializes a new instance of the
ServiceResponse.withError(ServiceError responseCode, String errorMessage)
Initializes a new instance of the
ServiceResponse.withSoapFault(SoapFaultDetails soapFaultDetails)
Initializes a new instance of the

Properties

BatchProcessingStopped bool
Gets a value indicating whether a batch request stopped processing before the end.
no setter
ErrorCode ServiceError?
Gets the error code associated with this response.
no setter
ErrorDetails Map<String?, String?>?
Gets error details associated with the response. If Result is set to Success, ErrorDetailsDictionary returns null. Error details will only available for some error codes. For example, when error code is ErrorRecurrenceHasNoOccurrence, the ErrorDetailsDictionary will contain keys for EffectiveStartDate and EffectiveEndDate.
no setter
ErrorMessage String?
Gets a detailed error message associated with the response. If Result is set to Success, ErrorMessage returns null. ErrorMessage is localized according to the PreferredCulture property of the ExchangeService object that was used to call the method that generated the response.
getter/setter pair
ErrorProperties List<PropertyDefinitionBase?>
Gets information about property errors associated with the response. If Result is set to Success, ErrorProperties returns null. ErrorProperties is only available for some error codes. For example, when the error code is ErrorInvalidPropertyForOperation, ErrorProperties will contain the definition of the property that was invalid for the request.
no setter
hashCode int
The hash code for this object.
no setterinherited
Result ServiceResult?
Gets the result associated with this response.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

InternalThrowIfNecessary() → void
method that throws a ServiceResponseException if this response has its Result property set to Error.
Loaded() → void
Called when the response has been loaded from XML.
LoadExtraErrorDetailsFromXml(EwsServiceXmlReader reader, String xmlElementName) bool
Reads the headers from a HTTP response
LoadFromXml(EwsServiceXmlReader reader, String xmlElementName) → void
Loads response from XML.
MapErrorCodeToErrorMessage() → void
Called after the response has been loaded from XML in order to map error codes to "better" error messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ParseMessageXml(EwsServiceXmlReader reader) → void
Parses the message XML.
ReadElementsFromXml(EwsServiceXmlReader reader) → void
Reads response elements from XML.
ThrowIfNecessary() → void
Throws a ServiceResponseException if this response has its Result property set to Error.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited