cvs: pear /Services_Webservice Webservice.php
| From: | Manfred Weber | Date: | Mon, 01 Aug 2005 20:06:00 +0000 |
| Subject: | cvs: pear /Services_Webservice Webservice.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33515@lists.php.net to get a copy of this message | ||
crafics Mon Aug 1 16:06:00 2005 EDT
Modified files:
/pear/Services_Webservice Webservice.php
Log:
- check for $_SERVER['HTTP_SOAPACTION']
- explicit check for soap-uri and soap-encoding
http://cvs.php.net/diff.php/pear/Services_Webservice/Webservice.php?r1=1.6&r2=1.7&ty=u
Index: pear/Services_Webservice/Webservice.php
diff -u pear/Services_Webservice/Webservice.php:1.6 pear/Services_Webservice/Webservice.php:1.7
--- pear/Services_Webservice/Webservice.php:1.6 Wed Jul 27 05:31:34 2005
+++ pear/Services_Webservice/Webservice.php Mon Aug 1 16:05:58 2005
@@ -1,8 +1,5 @@
<?php
-ini_set('error_reporting', E_ALL);
-ini_set('error_log','/var/www/error.log');
-
/* vim: set expandtab tabstop=4 shiftwidth=4: */
/**
@@ -22,7 +19,7 @@
* @author Philippe Jausions <Philippe.Jausions@11abacus.com>
* @copyright 2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Webservice.php,v 1.6 2005/07/27 09:31:34 jausions Exp $
+ * @version CVS: $Id: Webservice.php,v 1.7 2005/08/01 20:05:58 crafics Exp $
* @link http://pear.php.net/package/Services_Webservice
*/
@@ -97,9 +94,8 @@
}
$this->namespace = $namespace;
$this->description = $description;
- $this->soapServerOptions = (is_array($options) && count($options) > 0) ?
$options : array(
- 'uri' => $this->namespace,
- 'encoding' => SOAP_ENCODED);
+ $this->soapServerOptions['uri'] = isset($options['uri']) ?
$options['uri'] : $this->namespace;
+ $this->soapServerOptions['encoding'] = isset($options['encoding']) ?
$options['encoding'] : SOAP_ENCODED;
$this->protocol = 'http';
$this->_classname = get_class($this);
}
@@ -127,7 +123,7 @@
header('Content-Type: text/xml');
break;
default:
- if (!empty($HTTP_RAW_POST_DATA)) {
+ if (isset($_SERVER['HTTP_SOAPACTION'])) {
$action = null;
} else {
header('Content-Type: text/html');