public function parseResponse($message){
      $xmlObj = simplexml_load_string($message);

      if(!$this->isTheErrorBodyInStandardFormat($xmlObj)){
          return;
      }
      $type = (string)$xmlObj->Fault->attributes()['type'];
      if(isset($type) && !empty($type)){
        $this->intuitErrorType = $type;
      }

      $code = (string)$xmlObj->Fault->Error->attributes()['code'];
      if(isset($code) && !empty($code)){
        $this->intuitErrorCode = $code;
      }

      $element = (string)$xmlObj->Fault->Error->attributes()['element'];
      if(isset($element) && !empty($element)){
        $this->intuitErrorElement = $element;
      }

      $message = (string)$xmlObj->Fault->Error->Message;
      if(isset($message) && !empty($message)){
        $this->intuitErrorMessage = $message;
      }

      $detail = (string)$xmlObj->Fault->Error->Detail;
      if(isset($detail) && !empty($detail)){
        $this->intuitErrorDetail = $detail;
      }

    }
public function parseResponse($message){
      $xmlObj = simplexml_load_string($message);

      if(!$this->isTheErrorBodyInStandardFormat($xmlObj)){
          return;
      }
      $type = (string)$xmlObj->Fault->attributes()['type'];
      if(isset($type) && !empty($type)){
        $this->intuitErrorType = $type;
      }

      $code = (string)$xmlObj->Fault->Error->attributes()['code'];
      if(isset($code) && !empty($code)){
        $this->intuitErrorCode = $code;
      }

      $element = (string)$xmlObj->Fault->Error->attributes()['element'];
      if(isset($element) && !empty($element)){
        $this->intuitErrorElement = $element;
      }

      $message = (string)$xmlObj->Fault->Error->Message;
      if(isset($message) && !empty($message)){
        $this->intuitErrorMessage = $message;
      }

      $detail = (string)$xmlObj->Fault->Error->Detail;
      if(isset($detail) && !empty($detail)){
        $this->intuitErrorDetail = $detail;
      }

    }
public function parseResponse ( $ message ) { $ xmlObj = simplexml_load_string ( $ message ) ; if ( ! $ this -> isTheErrorBodyInStandardFormat ( $ xmlObj ) ) { return ; } $ type = ( string ) $ xmlObj -> Fault -> attributes ( ) [ 'type' ] ; if ( isset ( $ type ) && ! empty ( $ type ) ) { $ this -> intuitErrorType = $ type ; } $ code = ( string ) $ xmlObj -> Fault -> Error -> attributes ( ) [ 'code' ] ; if ( isset ( $ code ) && ! empty ( $ code ) ) { $ this -> intuitErrorCode = $ code ; } $ element = ( string ) $ xmlObj -> Fault -> Error -> attributes ( ) [ 'element' ] ; if ( isset ( $ element ) && ! empty ( $ element ) ) { $ this -> intuitErrorElement = $ element ; } $ message = ( string ) $ xmlObj -> Fault -> Error -> Message ; if ( isset ( $ message ) && ! empty ( $ message ) ) { $ this -> intuitErrorMessage = $ message ; } $ detail = ( string ) $ xmlObj -> Fault -> Error -> Detail ; if ( isset ( $ detail ) && ! empty ( $ detail ) ) { $ this -> intuitErrorDetail = $ detail ; } }
Based on the HTTP Response body, set the Intuit Error elements.
@var String The http response body in XML format
Based on the HTTP Response body set the Intuit Error elements .