cvs: pear /SOAP WSDL.php

From: Date: Sun, 18 Aug 2002 20:17:49 +0000
Subject: cvs: pear /SOAP WSDL.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5800@lists.php.net to get a copy of this message
shane Sun Aug 18 16:17:49 2002 EDT Modified files: /pear/SOAP WSDL.php Log: an example using a generated proxy fix for a test fix in WSDL class for service names with dots in them, and fixes for proxy generation to properly work with comlex types (amazon now works) Index: pear/SOAP/WSDL.php diff -u pear/SOAP/WSDL.php:1.24 pear/SOAP/WSDL.php:1.25 --- pear/SOAP/WSDL.php:1.24 Sun Jun 9 22:51:36 2002 +++ pear/SOAP/WSDL.php Sun Aug 18 16:17:49 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: WSDL.php,v 1.24 2002/06/10 02:51:36 shane Exp $ +// $Id: WSDL.php,v 1.25 2002/08/18 20:17:49 shane Exp $ // require_once 'SOAP/Base.php'; require_once 'SOAP/Fault.php'; @@ -38,7 +38,7 @@ * implement IDL type syntax declaration so we can generate WSDL * * @access public -* @version $Id: WSDL.php,v 1.24 2002/06/10 02:51:36 shane Exp $ +* @version $Id: WSDL.php,v 1.25 2002/08/18 20:17:49 shane Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates * @author Dietrich Ayala <dietrich@ganx4.com> Original Author @@ -262,12 +262,13 @@ { $comments = ''; if (isset($this->complexTypes[$_argtype['namespace']][$_argtype['type']])) { - $comments = " // $_argname is a ComplexType, refer to wsdl for more info\n"; + $comments = " // $_argname is a ComplexType {$_argtype['type']},\n"; + $comments .= " //refer to wsdl for more info\n"; if (isset($this->complexTypes[$_argtype['namespace']][$_argtype['type']]['attribute'])) { $comments .= " // $_argname may require attributes, refer to wsdl for more info\n"; } $wrapname = '{'.$this->namespaces[$_argtype['namespace']].'}'.$_argtype['type']; - $comments .= " \${$_argtype['type']} = new SOAP_Value('$wrapname',false,\${$_argtype['type']});\n"; + $comments .= " \$$_argname = new SOAP_Value('$_argname','$wrapname',\$$_argname);\n"; } $this->_addArg($args,$argarray,$_argname); @@ -287,7 +288,8 @@ // XXX currentPort is BAD $clienturl = $port['address']['location']; $classname = 'WebService_'.$this->service; - + $classname = str_replace('.','_',$classname); + if (!$this->_validateString($classname)) return NULL; $class = "class $classname extends SOAP_Client {\n". @@ -390,6 +392,7 @@ function getProxy($port = '') { $classname = 'WebService_'.$this->service; + $classname = str_replace('.','_',$classname); if (!class_exists($classname)) { $proxy = $this->generateProxyCode($port); eval($proxy);

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