cvs: pear /SOAP Client.php

From: Date: Sat, 17 Aug 2002 02:38:35 +0000
Subject: cvs: pear /SOAP Client.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5776@lists.php.net to get a copy of this message
shane Fri Aug 16 22:38:35 2002 EDT Modified files: /pear/SOAP Client.php Log: Small fix for doc/literal null parameters Index: pear/SOAP/Client.php diff -u pear/SOAP/Client.php:1.38 pear/SOAP/Client.php:1.39 --- pear/SOAP/Client.php:1.38 Sun Jul 7 17:49:14 2002 +++ pear/SOAP/Client.php Fri Aug 16 22:38:35 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: Client.php,v 1.38 2002/07/07 21:49:14 shane Exp $ +// $Id: Client.php,v 1.39 2002/08/17 02:38:35 shane Exp $ // require_once 'SOAP/Value.php'; @@ -37,7 +37,7 @@ * originaly based on SOAPx4 by Dietrich Ayala http://dietrich.ganx4.com/soapx4 * * @access public -* @version $Id: Client.php,v 1.38 2002/07/07 21:49:14 shane Exp $ +* @version $Id: Client.php,v 1.39 2002/08/17 02:38:35 shane Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates * @author Stig Bakken <ssb@fast.no> Conversion to PEAR @@ -322,7 +322,10 @@ $methodValue = new SOAP_Value($mqname->fqn(), 'Struct', $params); $soap_msg = $this->_makeEnvelope($methodValue, $this->headersOut, $this->encoding,$options); } else { - if ($options['input'] == 'parse') { + if (!$params) { + $mqname = new QName($method, $namespace); + $params = new SOAP_Value($mqname->fqn(), 'Struct', NULL); + } elseif ($options['input'] == 'parse') { if (is_array($params)) { $nparams = array(); foreach ($params as $n => $v) {

« previous php.pear.cvs (#5776) next »