cvs: pear /SOAP WSDL.php

From: Date: Mon, 13 May 2002 17:32:46 +0000
Subject: cvs: pear /SOAP WSDL.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3805@lists.php.net to get a copy of this message
shane Mon May 13 13:32:46 2002 EDT Modified files: /pear/SOAP WSDL.php Log: fix proxy generation, add getProxy function to enable eval'ing the proxy class for installations without the overload extension. Index: pear/SOAP/WSDL.php diff -u pear/SOAP/WSDL.php:1.20 pear/SOAP/WSDL.php:1.21 --- pear/SOAP/WSDL.php:1.20 Mon May 13 02:47:09 2002 +++ pear/SOAP/WSDL.php Mon May 13 13:32:45 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: WSDL.php,v 1.20 2002/05/13 06:47:09 shane Exp $ +// $Id: WSDL.php,v 1.21 2002/05/13 17:32:45 shane Exp $ // require_once 'SOAP/Base.php'; require_once 'SOAP/Fault.php'; @@ -37,7 +37,7 @@ * implement IDL type syntax declaration so we can generate WSDL * * @access public -* @version $Id: WSDL.php,v 1.20 2002/05/13 06:47:09 shane Exp $ +* @version $Id: WSDL.php,v 1.21 2002/05/13 17:32:45 shane Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates * @author Dietrich Ayala <dietrich@ganx4.com> Original Author @@ -178,11 +178,10 @@ } function _validateString($string) { + // XXX this should be done sooner or later return true; - echo "testing $string<br>\n"; - if (preg_match("/^[\w_:#\/]+$/",$string)) return true; - echo "test failed<br>\n"; - return false; + #if (preg_match("/^[\w_:#\/]+$/",$string)) return true; + #return false; } /** @@ -196,7 +195,7 @@ } // XXX currentPort is BAD $clienturl = $port['location']; - $classname = $this->service; + $classname = 'WebService_'.$this->service; if (!$this->_validateString($classname)) return NULL; @@ -244,6 +243,13 @@ return $class; } + function getProxy($port = '') + { + $proxy = $this->generateProxyCode($port); + eval($proxy); + $classname = 'WebService_'.$this->service; + return new $classname; + } } class SOAP_WSDL_Cache extends SOAP_Base

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