cvs: pear /SOAP/interop client_round2.php client_round2_interop.php database_round2.sql
| From: | Shane Caraveo | Date: | Tue, 09 Apr 2002 06:35:34 +0000 |
| Subject: | cvs: pear /SOAP/interop client_round2.php client_round2_interop.php database_round2.sql | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3162@lists.php.net to get a copy of this message | ||
shane Tue Apr 9 02:35:34 2002 EDT
Modified files:
/pear/SOAP/interop client_round2.php client_round2_interop.php
database_round2.sql
Log:
fix updating the endpoints
Index: pear/SOAP/interop/client_round2.php
diff -u pear/SOAP/interop/client_round2.php:1.3 pear/SOAP/interop/client_round2.php:1.4
--- pear/SOAP/interop/client_round2.php:1.3 Mon Apr 8 03:11:51 2002
+++ pear/SOAP/interop/client_round2.php Tue Apr 9 02:35:34 2002
@@ -17,23 +17,23 @@
// | Authors: Shane Caraveo <Shane@Caraveo.com> |
// +----------------------------------------------------------------------+
//
-// $Id: client_round2.php,v 1.3 2002/04/08 07:11:51 shane Exp $
+// $Id: client_round2.php,v 1.4 2002/04/09 06:35:34 shane Exp $
//
set_time_limit(0);
require_once 'SOAP/interop/client_round2_interop.php';
$iop = new Interop_Client();
// force a fetch of endpoints, this happens irregardless if no endpoints in database
-#$iop->fetchEndpoints();
+$iop->fetchEndpoints();
// set some options
$iop->currentTest = 'base'; // see $tests above
-$iop->paramType = 'soapval'; // 'php' or 'soapval'
+$iop->paramType = 'php'; // 'php' or 'soapval'
$iop->useWSDL = 0; // 1= do wsdl tests
$iop->numServers = 0; // 0 = all
$iop->specificEndpoint = ''; // test only this endpoint
$iop->testMethod = ''; // test only this method
-$iop->skipEndpointList = array('WASP for C++','MS SOAP ToolKit 2.0 Typed');
// endpoints to skip
+$iop->skipEndpointList = array(); // endpoints to skip
$this->nosave = 0; // 1= disable saving results to database
// debug output
$iop->show = 1;
Index: pear/SOAP/interop/client_round2_interop.php
diff -u pear/SOAP/interop/client_round2_interop.php:1.4
pear/SOAP/interop/client_round2_interop.php:1.5
--- pear/SOAP/interop/client_round2_interop.php:1.4 Tue Apr 9 00:46:52 2002
+++ pear/SOAP/interop/client_round2_interop.php Tue Apr 9 02:35:34 2002
@@ -16,7 +16,7 @@
// | Authors: Shane Caraveo <Shane@Caraveo.com> |
// +----------------------------------------------------------------------+
//
-// $Id: client_round2_interop.php,v 1.4 2002/04/09 04:46:52 shane Exp $
+// $Id: client_round2_interop.php,v 1.5 2002/04/09 06:35:34 shane Exp $
//
require_once 'DB.php'; // PEAR/DB
require_once 'SOAP/Client.php';
@@ -34,11 +34,7 @@
var $interopServer = "http://www.whitemesa.net/interopInfo";
// our local endpoint, will always get added to the database for all tests
- var $localEndpoint = array(
- 'endpointName'=>'localhost',
- 'endpointURL'=>'http://localhost/soap/server_round2.php',
- 'wsdlURL'=>'http://localhost/soap/server_round2?wsdl'
- );
+ var $localEndpoint;
// specify testing
var $currentTest = 'base'; // see $tests above
@@ -70,6 +66,22 @@
echo $this->dbc->getMessage();
$this->dbc = NULL;
}
+ // set up local endpoint
+ $this->localEndpoint['base'] = array(
+ 'endpointName'=>'localhost',
+ 'endpointURL'=>'http://localhost/soap/server_round2.php',
+ 'wsdlURL'=>'http://localhost/soap/interop.wsdl'
+ );
+ $this->localEndpoint['GroupB'] = array(
+ 'endpointName'=>'localhost',
+ 'endpointURL'=>'http://localhost/soap/server_round2.php',
+ 'wsdlURL'=>'http://localhost/soap/interopB.wsdl'
+ );
+ $this->localEndpoint['GroupC'] = array(
+ 'endpointName'=>'localhost',
+ 'endpointURL'=>'http://localhost/soap/server_round2.php',
+ 'wsdlURL'=>'http://localhost/soap/echoheadersvc.wsdl'
+ );
}
function _fetchEndpoints(&$soapclient, $test) {
@@ -83,8 +95,8 @@
}
// add our local endpoint
- if ($this->localEndpoint) {
- array_push($endpointArray, $this->localEndpoint);
+ if ($this->localEndpoint[$test]) {
+ array_push($endpointArray, $this->localEndpoint[$test]);
}
if (!$endpointArray) return;
@@ -97,7 +109,7 @@
if (is_object($res)) $res->free();
// save new endpoints into database
foreach($endpointArray as $k => $v){
- if (array_key_exists($v['endpointName'],$endpointArray)) {
+ if (array_key_exists($v['endpointName'],$this->endpoints)) {
$res = $this->dbc->query("update endpoints set
endpointURL='{$v['endpointURL']}',
wsdlURL='{$v['wsdlURL']}', status=1 where
id={$this->endpoints[$v['endpointName']]['id']}");
} else {
$res = $this->dbc->query("insert into endpoints
(endpointName,endpointURL,wsdlURL,class)
values('{$v['endpointName']}','{$v['endpointURL']}','{$v['wsdlURL']}','$test')");
Index: pear/SOAP/interop/database_round2.sql
diff -u pear/SOAP/interop/database_round2.sql:1.1 pear/SOAP/interop/database_round2.sql:1.2
--- pear/SOAP/interop/database_round2.sql:1.1 Sat Mar 30 17:57:56 2002
+++ pear/SOAP/interop/database_round2.sql Tue Apr 9 02:35:34 2002
@@ -4,9 +4,9 @@
# http://phpmyadmin.sourceforge.net/ (download
page)
#
# Host: localhost
-# Generation Time: Mar 30, 2002 at 02:39 PM
+# Generation Time: Apr 08, 2002 at 08:32 PM
# Server version: 3.23.49
-# PHP Version: 4.3.0-dev
+# PHP Version: 4.1.1
# Database :
interop
# --------------------------------------------------------
@@ -42,6 +42,4 @@
wire text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
-
-