public function LogAPIResponseToLog($body, $requestUri, $httpHeaders){
      if(strcasecmp($httpHeaders[CoreConstants::CONTENT_TYPE], CoreConstants::CONTENTTYPE_APPLICATIONXML) == 0 ||
          strcasecmp($httpHeaders[CoreConstants::CONTENT_TYPE], CoreConstants::CONTENTTYPE_APPLICATIONXML_WITH_CHARSET) == 0){
             $body = $this->parseStringToDom($body);
      }

      $this->RequestLogging->LogPlatformRequests($body, $requestUri, $httpHeaders, false);
    }
public function LogAPIResponseToLog($body, $requestUri, $httpHeaders){
      if(strcasecmp($httpHeaders[CoreConstants::CONTENT_TYPE], CoreConstants::CONTENTTYPE_APPLICATIONXML) == 0 ||
          strcasecmp($httpHeaders[CoreConstants::CONTENT_TYPE], CoreConstants::CONTENTTYPE_APPLICATIONXML_WITH_CHARSET) == 0){
             $body = $this->parseStringToDom($body);
      }

      $this->RequestLogging->LogPlatformRequests($body, $requestUri, $httpHeaders, false);
    }
public function LogAPIResponseToLog ( $ body , $ requestUri , $ httpHeaders ) { if ( strcasecmp ( $ httpHeaders [ CoreConstants :: CONTENT_TYPE ] , CoreConstants :: CONTENTTYPE_APPLICATIONXML ) == 0 || strcasecmp ( $ httpHeaders [ CoreConstants :: CONTENT_TYPE ] , CoreConstants :: CONTENTTYPE_APPLICATIONXML_WITH_CHARSET ) == 0 ) { $ body = $ this -> parseStringToDom ( $ body ) ; } $ this -> RequestLogging -> LogPlatformRequests ( $ body , $ requestUri , $ httpHeaders , false ) ; }
Log API Reponse to the Log directory that user specified.
@param String $body The requestBody
@param String $requestUri  The URI for this request
@param Array $httpHeaders  The headers for the request
Log API Reponse to the Log directory that user specified .