當前位置: 首頁>>代碼示例>>PHP>>正文


PHP nusoap_server::parseRequest方法代碼示例

本文整理匯總了PHP中nusoap_server::parseRequest方法的典型用法代碼示例。如果您正苦於以下問題:PHP nusoap_server::parseRequest方法的具體用法?PHP nusoap_server::parseRequest怎麽用?PHP nusoap_server::parseRequest使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在nusoap_server的用法示例。


在下文中一共展示了nusoap_server::parseRequest方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: parseRequest

 function parseRequest($headers, $data)
 {
     $this->debug('Entering parseRequest() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
     $this->requestAttachments = array();
     if (strstr($headers['content-type'], $this->dimeContentType)) {
         $this->_decodeDIMEMessage($headers, $data);
     } else {
         $this->debug('Not dime content');
     }
     if (!$this->validate_signatrue($data)) {
         $errmsg = 'SOAP Signatrue ERROR';
         if (isset($GLOBALS['validate_signatrue_errmsg'])) {
             $errmsg = $GLOBALS['validate_signatrue_errmsg'];
         }
         $this->fault('TokenError', $errmsg);
     }
     return parent::parseRequest($headers, $data);
 }
開發者ID:noikiy,項目名稱:MyShop,代碼行數:18,代碼來源:nudime.php

示例2: parseRequest

 function parseRequest($headers, $data)
 {
     $this->debug('Entering parseRequest() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
     $this->requestAttachments = array();
     //ob_start();
     //var_dump($headers);
     //var_dump($data);
     //echo "\r\n\r\n";
     if (strstr($headers['content-type'], $this->dimeContentType)) {
         $this->_decodeDIMEMessage($headers, $data);
     } else {
         $this->debug('Not dime content');
     }
     if (!$this->validate_signatrue($data)) {
         $this->fault('TokenError', '證書驗證失敗,請使用正確的ShopEx證書。');
     }
     //var_dump($this->requestAttachments);
     //$logdata = ob_get_contents();
     //file_put_contents(dirname(__FILE__).'/log.txt', $logdata);
     //ob_end_clean();
     return parent::parseRequest($headers, $data);
 }
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:22,代碼來源:nudime.php

示例3: parseRequest

 /**
  * processes SOAP message received from client
  *
  * @param	array	$headers	The HTTP headers
  * @param	string	$data		unprocessed request data from client
  * @return	mixed	value of the message, decoded into a PHP type
  * @access   private
  */
 function parseRequest($headers, $data)
 {
     $this->debug('Entering parseRequest() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
     $this->requestAttachments = array();
     if (strstr($headers['content-type'], 'multipart/related')) {
         $this->debug('Decode multipart/related');
         $input = '';
         foreach ($headers as $k => $v) {
             $input .= "{$k}: {$v}\r\n";
         }
         $params['input'] = $input . "\r\n" . $data;
         $params['include_bodies'] = true;
         $params['decode_bodies'] = true;
         $params['decode_headers'] = true;
         $structure = Mail_mimeDecode::decode($params);
         foreach ($structure->parts as $part) {
             if (!isset($part->disposition) && strstr($part->headers['content-type'], 'text/xml')) {
                 $this->debug('Have root part of type ' . $part->headers['content-type']);
                 $return = parent::parseRequest($part->headers, $part->body);
             } else {
                 $this->debug('Have an attachment of type ' . $part->headers['content-type']);
                 $info['data'] = $part->body;
                 $info['filename'] = isset($part->d_parameters['filename']) ? $part->d_parameters['filename'] : '';
                 $info['contenttype'] = $part->headers['content-type'];
                 $info['cid'] = $part->headers['content-id'];
                 $this->requestAttachments[] = $info;
             }
         }
         if (isset($return)) {
             return $return;
         }
         $this->setError('No root part found in multipart/related content');
         return;
     }
     $this->debug('Not multipart/related');
     return parent::parseRequest($headers, $data);
 }
開發者ID:E-SOFTinc,項目名稱:UFlp-Back-Office,代碼行數:45,代碼來源:nusoapmime.php


注:本文中的nusoap_server::parseRequest方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。