Esempio n. 1
0
    /**
     * Logs the SOAP XML to the Logger::$SOAP_XML_LOG log after the request has
     * transformed by PrepareRequest() and both the request and response have
     * been sanitized by RemoveSensitiveInfo().
     * @param string $level the log level to use
     * @see PrepareRequest()
     * @see RemoveSensitiveInfo()
     */
    private function LogSoapXml($level)
    {
        $message = sprintf('%s
_NO_INDENT_721572419
_NO_INDENT_721572419%s
_NO_INDENT_721572419
_NO_INDENT_721572419%s
_NO_INDENT_721572419
_NO_INDENT_721572419%s
_NO_INDENT_721572419', trim($this->__getLastRequestHeaders()), XmlUtils::PrettyPrint($this->lastRequest), trim($this->__getLastResponseHeaders()), XmlUtils::PrettyPrint($this->lastResponse));
        Logger::log(Logger::$SOAP_XML_LOG, $message, $level);
    }
Esempio n. 2
0
 /**
  * Logs the SOAP XML to the Logger::$SOAP_XML_LOG log after the request has
  * transformed by PrepareRequest() and both the request and response have
  * been sanitized by RemoveSensitiveInfo().
  * @param string $level the log level to use
  * @see PrepareRequest()
  * @see RemoveSensitiveInfo()
  * @access private
  */
 private function LogSoapXml($level)
 {
     $message = sprintf("%s\n\n%s\n\n%s\n\n%s\n", trim($this->__getLastRequestHeaders()), XmlUtils::PrettyPrint($this->lastRequest), trim($this->__getLastResponseHeaders()), XmlUtils::PrettyPrint($this->lastResponse));
     Logger::log(Logger::$SOAP_XML_LOG, $message, $level);
 }