ServiceResponse.withSoapFault constructor

ServiceResponse.withSoapFault(
  1. SoapFaultDetails soapFaultDetails
)
Initializes a new instance of the The SOAP fault details.

Implementation

ServiceResponse.withSoapFault(SoapFaultDetails soapFaultDetails) {
  this._result = ServiceResult.Error;
  this._errorCode = soapFaultDetails.ResponseCode;
  this._errorMessage = soapFaultDetails.FaultString;
  this._errorDetails = soapFaultDetails.ErrorDetails;
}