cvs: pear /SOAP WSDL.php package.xml

From: Date: Sat, 09 Apr 2005 03:52:25 +0000
Subject: cvs: pear /SOAP WSDL.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31072@lists.php.net to get a copy of this message
chagenbu Fri Apr 8 23:52:25 2005 EDT Modified files: /pear/SOAP package.xml WSDL.php Log: - Allow overriding the WSDL endpoint in generated proxy classes (PEAR bug #4076). http://cvs.php.net/diff.php/pear/SOAP/package.xml?r1=1.55&r2=1.56&ty=u Index: pear/SOAP/package.xml diff -u pear/SOAP/package.xml:1.55 pear/SOAP/package.xml:1.56 --- pear/SOAP/package.xml:1.55 Fri Apr 8 23:19:12 2005 +++ pear/SOAP/package.xml Fri Apr 8 23:52:24 2005 @@ -74,6 +74,9 @@ - Fix PEAR bug #4063 - correctly mark NULLs in request XML. - Fix PEAR bug #4074 - overwriting of some arguments in proxy code. + + - Allow overriding the WSDL endpoint in generated proxy classes + (PEAR bug #4076). </notes> <filelist> <dir name="/" baseinstalldir="SOAP"> http://cvs.php.net/diff.php/pear/SOAP/WSDL.php?r1=1.73&r2=1.74&ty=u Index: pear/SOAP/WSDL.php diff -u pear/SOAP/WSDL.php:1.73 pear/SOAP/WSDL.php:1.74 --- pear/SOAP/WSDL.php:1.73 Fri Apr 8 23:19:12 2005 +++ pear/SOAP/WSDL.php Fri Apr 8 23:52:24 2005 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: WSDL.php,v 1.73 2005/04/09 03:19:12 chagenbu Exp $ +// $Id: WSDL.php,v 1.74 2005/04/09 03:52:24 chagenbu Exp $ // require_once 'SOAP/Base.php'; require_once 'SOAP/Fault.php'; @@ -494,10 +494,10 @@ return null; } - if (is_array($this->proxy) && count($this->proxy) > 0) { + if (is_array($this->proxy) && count($this->proxy)) { $class = "class $classname extends SOAP_Client\n{\n" . - " function $classname()\n{\n" . - " \$this->SOAP_Client(\"$clienturl\", 0, 0, + " function $classname(\$path = \"$clienturl\")\n{\n" . + " \$this->SOAP_Client(\$path, 0, 0, array("; foreach ($this->proxy as $key => $val) { @@ -515,8 +515,8 @@ $class = str_replace(',))', '))', $class); } else { $class = "class $classname extends SOAP_Client\n{\n" . - " function $classname()\n {\n" . - " \$this->SOAP_Client(\"$clienturl\", 0);\n" . + " function $classname(\$path = \"$clienturl\")\n {\n" . + " \$this->SOAP_Client(\$path, 0);\n" . " }\n"; } @@ -613,12 +613,12 @@ $class .= " function &$opname_php($args)\n {\n$comments$wrappers" . " return \$this->call('$opname',\n" . - " \$v = $argarray,\n" . - " array('namespace' => '$namespace',\n" . - " 'soapaction' => '$soapaction',\n" . - " 'style' => '$opstyle',\n" . - " 'use' => '$use'" . - ($this->trace?"\n, 'trace' => 1" : '') . "));\n" . + " \$v = $argarray,\n" . + " array('namespace' => '$namespace',\n" . + " 'soapaction' => '$soapaction',\n" . + " 'style' => '$opstyle',\n" . + " 'use' => '$use'" . + ($this->trace?",\n 'trace' => 1" : '') . "));\n" . " }\n"; }

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