Source for file interop_client_run.php
Documentation is available at interop_client_run.php
// this script is usefull for quickly testing stuff, use the 'pretty' file for html output
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Shane Caraveo <Shane@Caraveo.com> |
// +----------------------------------------------------------------------+
// $Id: interop_client_run.php,v 1.8 2003/04/14 02:12:45 shane Exp $
if (isset ($_SERVER['SERVER_NAME'])) {
die ("full test run cannot be done via webserver.");
require 'Console/Getopt.php';
require_once 'interop_client.php';
#$SOAP_RAW_CONVERT = TRUE;
$INTEROP_LOCAL_SERVER = TRUE; // add local server to endpoints
$iop = & new Interop_Client ();
$iop->client_type= 'pear'; // 'pear' or 'php-soap'
$iop->currentTest = ''; // see $tests above
$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 (); #array('Frontier','CapeConnect','Apache Axis','Apache SOAP 2.2'); // endpoints to skip
$iop->nosave = 0; // 1= disable saving results to database
$iop->showFaults = 0; // used in result table output
#$_SERVER['argv'] = array('-r', "Round 3", '-s', "Local PEAR::SOAP");
$args = Console_Getopt ::getopt ($_SERVER['argv'], 'c:dehl:m:np:r:s:t:v:wq');
interop_client_run.php [options]
-c pear|php-soap client type (not implmented yet)
-e fetch interop test information
-l list comma seperated list of endpoint names to skip
-m method_name specific soap method to test
-n do not save results to database
-p t|e print list of [t]ests or [e]ndpoints
-r string restrict tests to those whose name starts with...
-s server_name test a specific server
-t test_name run a specific set of tests
-v php|soapval run tests with specific param types (requires -t)
-w run wsdl tests only (requires -t)
print "Interop tests supported:\n";
foreach ($iop->tests as $test) {
if (!$iop->getEndpoints ($iop->currentTest )) {
die (" Unable to retrieve endpoints for $iop->currentTest" );
print " Interop Servers for $iop->currentTest:\n";
foreach ($iop->endpoints as $server) {
print " $server->name\n";
foreach($args[0 ] as $arg) {
$iop->client_type = $arg[1 ];
$iop->skipEndpointList = split(',',$arg[1 ]);
$iop->testMethod = $arg[1 ];
} else if ($arg[1 ] == 'e') {
if (!$iop->currentTest ) {
print "You need to specify a test with -t";
die ("invalid print argument");
$iop->specificEndpoint = $arg[1 ];
$iop->currentTest = $arg[1 ];
if ($arg[1 ]!= 'php' && $arg[1 ]!= 'soapval')
die ('Incorrect value for argument v: '. $arg[1 ]);
$iop->paramType = $arg[1 ];
// these are endpoints that are listed in the interop
// server, but do not realy exist any longer
$bad = array ('Spheon JSOAP','Phalanx',
'SilverStream','SOAPx4 (PHP)',
'Virtuoso (development)',
'Zolera SOAP Infrastructure');
$iop->skipEndpointList = array_merge($iop->skipEndpointList , $bad);
foreach ($tests as $test) {
$iop->doTest (); // run a single set of tests using above options
#$iop->doGroupTests(); // run a group of tests set in $currentTest
$iop->doTests (); // run all tests, ignore above options
Documentation generated on Mon, 11 Mar 2019 14:54:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|