当前位置: 首页>>代码示例>>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;未经允许,请勿转载。