cvs: pear /SOAP_Interop interop_Round2Base.php interop_Round2GroupB.php interop_Round3GroupD.php interop_client.php interop_client_run.php
interop_test.php params_Round3GroupD.php registrationAndNotification.php server_Round2Base.php server_Round2GroupB.php server_Round2GroupC.php
server_Round3GroupD.php /SOAP_Interop/wsdl InteropTestDocLit.wsdl.php InteropTestDocLitParameters.wsdl.php InteropTestRpcEnc.wsdl.php
compound1.wsdl.php compound2.wsdl.php echoheadersvc.wsdl.php emptysa.wsdl.php import1.wsdl.php import2.wsdl.php import3.wsdl.php interop.wsdl.php
interopB.wsdl.php

From: Date: Tue, 01 Oct 2002 23:47:04 +0000
Subject: cvs: pear /SOAP_Interop interop_Round2Base.php interop_Round2GroupB.php interop_Round3GroupD.php interop_client.php interop_client_run.php
interop_test.php params_Round3GroupD.php registrationAndNotification.php server_Round2Base.php server_Round2GroupB.php server_Round2GroupC.php
server_Round3GroupD.php /SOAP_Interop/wsdl InteropTestDocLit.wsdl.php InteropTestDocLitParameters.wsdl.php InteropTestRpcEnc.wsdl.php
compound1.wsdl.php compound2.wsdl.php echoheadersvc.wsdl.php emptysa.wsdl.php import1.wsdl.php import2.wsdl.php import3.wsdl.php interop.wsdl.php
interopB.wsdl.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-6809@lists.php.net to get a copy of this message
shane Tue Oct 1 19:47:04 2002 EDT Modified files: /pear/SOAP_Interop interop_Round2Base.php interop_Round2GroupB.php interop_Round3GroupD.php interop_client.php interop_client_run.php interop_test.php params_Round3GroupD.php registrationAndNotification.php server_Round2Base.php server_Round2GroupB.php server_Round2GroupC.php server_Round3GroupD.php /pear/SOAP_Interop/wsdl InteropTestDocLit.wsdl.php InteropTestDocLitParameters.wsdl.php InteropTestRpcEnc.wsdl.php compound1.wsdl.php compound2.wsdl.php echoheadersvc.wsdl.php emptysa.wsdl.php import1.wsdl.php import2.wsdl.php import3.wsdl.php interop.wsdl.php interopB.wsdl.php Log: fix soap interop servers add local test server into the server database

Index: pear/SOAP_Interop/interop_Round2Base.php diff -u pear/SOAP_Interop/interop_Round2Base.php:1.1 pear/SOAP_Interop/interop_Round2Base.php:1.2 --- pear/SOAP_Interop/interop_Round2Base.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/interop_Round2Base.php Tue Oct 1 19:47:00 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: interop_Round2Base.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: interop_Round2Base.php,v 1.2 2002/10/01 23:47:00 shane Exp $ // require_once 'params_classes.php'; @@ -93,7 +93,9 @@ function &echoStruct($inputStruct) { - return $inputStruct->to_soap(); + if (get_class($inputStruct)=='SOAPStruct') + return $inputStruct->__to_soap(); + return $inputStruct; } function &echoStructArray($inputStructArray) @@ -102,7 +104,7 @@ if ($inputStructArray) { $c = count($inputStructArray); for ($i = 0; $i < $c; $i++) { - $ra[] = $inputStructArray[$i]->to_soap(); + $ra[] = $this->echoStruct($inputStructArray[$i]); } } return $ra; Index: pear/SOAP_Interop/interop_Round2GroupB.php diff -u pear/SOAP_Interop/interop_Round2GroupB.php:1.1 pear/SOAP_Interop/interop_Round2GroupB.php:1.2 --- pear/SOAP_Interop/interop_Round2GroupB.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/interop_Round2GroupB.php Tue Oct 1 19:47:01 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: interop_Round2GroupB.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: interop_Round2GroupB.php,v 1.2 2002/10/01 23:47:01 shane Exp $ // require_once 'params_classes.php'; @@ -61,7 +61,9 @@ function &echoNestedStruct(&$struct) { - return $struct->to_soap(); + if (array_key_exists('__to_soap',get_class_methods($struct))) + return $struct->__to_soap(); + return $struct; } function &echo2DStringArray(&$ary) Index: pear/SOAP_Interop/interop_Round3GroupD.php diff -u pear/SOAP_Interop/interop_Round3GroupD.php:1.1 pear/SOAP_Interop/interop_Round3GroupD.php:1.2 --- pear/SOAP_Interop/interop_Round3GroupD.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/interop_Round3GroupD.php Tue Oct 1 19:47:01 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: interop_Round3GroupD.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: interop_Round3GroupD.php,v 1.2 2002/10/01 23:47:01 shane Exp $ // require_once 'params_classes.php'; @@ -68,9 +68,9 @@ return NULL; } - function echoDocument() + function &x_Document(&$document) { - return NULL; + return new SOAP_Value('result_Document','{http://soapinterop.org/xsd}x_Document',$document); } function echoEmployee() Index: pear/SOAP_Interop/interop_client.php diff -u pear/SOAP_Interop/interop_client.php:1.3 pear/SOAP_Interop/interop_client.php:1.4 --- pear/SOAP_Interop/interop_client.php:1.3 Sat Sep 28 21:31:24 2002 +++ pear/SOAP_Interop/interop_client.php Tue Oct 1 19:47:01 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: interop_client.php,v 1.3 2002/09/29 01:31:24 shane Exp $ +// $Id: interop_client.php,v 1.4 2002/10/01 23:47:01 shane Exp $ // require_once 'DB.php'; // PEAR/DB require_once 'SOAP/Client.php'; @@ -31,6 +31,7 @@ require_once 'registrationAndNotification.php'; error_reporting(E_ALL ^ E_NOTICE); +$INTEROP_LOCAL_SERVER = false; class Interop_Client { @@ -253,11 +254,18 @@ $soap_test->result['class'] = $this->currentTest; $soap_test->result['type'] = $this->paramType; $soap_test->result['wsdl'] = $this->useWSDL; + $opdata = NULL; if ($this->useWSDL) { if ($endpoint_info->wsdlURL) { if (!$endpoint_info->client) { + if (0 /* dynamic client */) { + $endpoint_info->wsdl = new SOAP_WSDL($endpoint_info->wsdlURL); + $endpoint_info->wsdl->trace=1; + $endpoint_info->client = $endpoint_info->wsdl->getProxy('',$endpoint_info->name); + } else { $endpoint_info->client = new SOAP_Client($endpoint_info->wsdlURL,1); + } $endpoint_info->client->_auto_translation = true; } if ($endpoint_info->client->_wsdl->__isfault()) { @@ -269,7 +277,12 @@ ); return FALSE; } + if ($soap_test->service) { + $endpoint_info->client->_wsdl->set_service($soap_test->service); + } $soap =& $endpoint_info->client; + #$port = $soap->_wsdl->getPortName($soap_test->method_name); + #$opdata = $soap->_wsdl->getOperationData($port, $soap_test->method_name); } else { $fault = array( 'faultcode'=>'WSDL', @@ -281,8 +294,7 @@ ); return FALSE; } - $namespace = false; - $soapaction = false; + $options = array('trace'=>1); } else { $namespace = $soapaction = 'http://soapinterop.org/'; // hack to make tests work with MS SoapToolkit @@ -298,14 +310,11 @@ $endpoint_info->client->_auto_translation = true; } $soap = &$endpoint_info->client; + $options = array('namespace'=>$namespace, + 'soapaction'=>$soapaction, + 'trace'=>1); } - // for round3 testing - if (isset($soap_test->soapaction)) - $soapaction = $soap_test->soapaction; - if (isset($soap_test->namespace)) - $namespace = $soap_test->namespace; - // add headers to the test if ($soap_test->headers) { // $header is already a SOAP_Header class @@ -317,10 +326,34 @@ } $soap->setEncoding($soap_test->encoding); - $options = array('namespace'=>$namespace, - 'soapaction'=>$soapaction, - 'trace'=>1); - $return = $soap->call($soap_test->method_name,$soap_test->method_params, $options); + + #if ($opdata) { + # if (isset($opdata['style'])) + # $options['style'] = $opdata['style']; + # if (isset($opdata['soapAction'])) + # $options['soapaction'] = $opdata['soapAction']; + # if (isset($opdata['input']) && + # isset($opdata['input']['use'])) + # $options['use'] = $opdata['input']['use']; + # if (isset($opdata['input']) && + # isset($opdata['input']['namespace'])) + # $options['namespace'] = $soap->_wsdl->namespaces[$opdata['input']['namespace']]; + #} + #if ($this->useWSDL) { + # $wsdlcall = '$return = $soap->'.$soap_test->method_name.'('; + # $args = ''; + # if ($soap_test->method_params) { + # $pnames = array_keys($soap_test->method_params); + # foreach ($pnames as $argname) { + # if ($args) $args .=','; + # $args .= '$soap_test->method_params[\''.$argname.'\']'; + # } + # } + # $wsdlcall = $wsdlcall.$args.');'; + # eval($wsdlcall); + #} else { + $return = $soap->call($soap_test->method_name,$soap_test->method_params, $options); + #} if(!PEAR::isError($return)){ if (is_array($soap_test->method_params) && count($soap_test->method_params) == 1) { @@ -613,16 +646,16 @@ else $this->totals['fail']++; } } else { - unset($this->endpoints[$i]); + //unset($this->endpoints[$i]); } } $this->totals['calls'] = count($methods) * $this->totals['servers']; - if ($this->totals['fail'] == $this->totals['calls']) { - // assume tests have not run, skip outputing table - print "No Data Available<br>\n"; - return; - } + #if ($this->totals['fail'] == $this->totals['calls']) { + # // assume tests have not run, skip outputing table + # print "No Data Available<br>\n"; + # return; + #} echo "\n\n<b>Servers: {$this->totals['servers']} Calls: {$this->totals['calls']} ". "Success: {$this->totals['success']} <br>\n". Index: pear/SOAP_Interop/interop_client_run.php diff -u pear/SOAP_Interop/interop_client_run.php:1.2 pear/SOAP_Interop/interop_client_run.php:1.3 --- pear/SOAP_Interop/interop_client_run.php:1.2 Sat Sep 28 21:02:57 2002 +++ pear/SOAP_Interop/interop_client_run.php Tue Oct 1 19:47:01 2002 @@ -17,11 +17,12 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: interop_client_run.php,v 1.2 2002/09/29 01:02:57 shane Exp $ +// $Id: interop_client_run.php,v 1.3 2002/10/01 23:47:01 shane Exp $ // set_time_limit(0); require_once 'interop_client.php'; #$SOAP_RAW_CONVERT = TRUE; +$INTEROP_LOCAL_SERVER = TRUE;// add local server to endpoints $iop = new Interop_Client(); // force a fetch of endpoints, this happens irregardless if no endpoints in database @@ -29,7 +30,7 @@ // set some options $iop->client_type='pear'; // 'pear' or 'php-soap' -$iop->currentTest = 'Round 2 Base'; // see $tests above +$iop->currentTest = 'Round 2 Group C'; // see $tests above $iop->paramType = 'php'; // 'php' or 'soapval' $iop->useWSDL = 1; // 1= do wsdl tests $iop->numServers = 0; // 0 = all Index: pear/SOAP_Interop/interop_test.php diff -u pear/SOAP_Interop/interop_test.php:1.1 pear/SOAP_Interop/interop_test.php:1.2 --- pear/SOAP_Interop/interop_test.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/interop_test.php Tue Oct 1 19:47:01 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: interop_test.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: interop_test.php,v 1.2 2002/10/01 23:47:01 shane Exp $ // require_once 'SOAP/Value.php'; @@ -36,6 +36,7 @@ var $show = 1; var $debug = 0; var $encoding = SOAP_DEFAULT_ENCODING; + var $service = NULL; // if multiple services, this sets to a specific service function SOAP_Interop_Test($methodname, $params, $expect = NULL) { if (strchr($methodname,'(')) { Index: pear/SOAP_Interop/params_Round3GroupD.php diff -u pear/SOAP_Interop/params_Round3GroupD.php:1.2 pear/SOAP_Interop/params_Round3GroupD.php:1.3 --- pear/SOAP_Interop/params_Round3GroupD.php:1.2 Sat Sep 28 21:02:57 2002 +++ pear/SOAP_Interop/params_Round3GroupD.php Tue Oct 1 19:47:01 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: params_Round3GroupD.php,v 1.2 2002/09/29 01:02:57 shane Exp $ +// $Id: params_Round3GroupD.php,v 1.3 2002/10/01 23:47:01 shane Exp $ // require_once 'params_values.php'; require_once 'interop_test.php'; @@ -61,27 +61,28 @@ $soap_tests[INTEROP_R3D_DOCLIT][] = new SOAP_Interop_Test('echoStruct', array('inputStruct' => &$soapstruct)); -$soap_tests[INTEROP_R3D_DOCLIT][] = - new SOAP_Interop_Test('echoVoid', NULL); +#$soap_tests[INTEROP_R3D_DOCLIT][] = +# new SOAP_Interop_Test('echoVoid', NULL); # DOC LIT w/Params Tests # http://www.whitemesa.net/wsdl/r3/interoptestdoclitparameters.wsdl $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] = new SOAP_Interop_Test('echoString', - array('inputString' => &$string)); + array('echoString' => $string)); $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] = new SOAP_Interop_Test('echoStringArray', - array('inputString' => &$string_array)); + array('echoStringArray' => &$string_array)); $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] = new SOAP_Interop_Test('echoStruct', - array('inputStruct' => &$soapstruct)); + array('echoStruct' => &$soapstruct)); $soap_tests[INTEROP_R3D_DOCLIT_PARAM][] = new SOAP_Interop_Test('echoVoid', NULL); # IMPORT 1 tests # http://www.whitemesa.net/wsdl/r3/import1.wsdl -$soap_tests[INTEROP_R3D_IMPORT1][] = new SOAP_Interop_Test('echoString', - array('inputString' => &$string)); +$soap_tests[INTEROP_R3D_IMPORT1][] = + new SOAP_Interop_Test('echoString', + array('inputString' => &$string)); # IMPORT 2 tests # http://www.whitemesa.net/wsdl/r3/import2.wsdl @@ -91,12 +92,17 @@ # IMPORT 2 tests # http://www.whitemesa.net/wsdl/r3/import3.wsdl -$soap_tests[INTEROP_R3D_IMPORT3][] = - new SOAP_Interop_Test('echoStruct', +$test = new SOAP_Interop_Test('echoStruct', array('inputStruct' => &$soapstruct)); -$soap_tests[INTEROP_R3D_IMPORT3][] = - new SOAP_Interop_Test('echoStructArray', +$test->service = 'Import3'; +$soap_tests[INTEROP_R3D_IMPORT3][] = &$test; +unset($test); + +$test = new SOAP_Interop_Test('echoStructArray', array('inputStructArray' =>&$soapstruct_array)); +$test->service = 'Import3'; +$soap_tests[INTEROP_R3D_IMPORT3][] = &$test; +unset($test); # RPC ENCODED Tests # http://www.whitemesa.net/wsdl/r3/interoptestdoclitparameters.wsdl Index: pear/SOAP_Interop/registrationAndNotification.php diff -u pear/SOAP_Interop/registrationAndNotification.php:1.1 pear/SOAP_Interop/registrationAndNotification.php:1.2 --- pear/SOAP_Interop/registrationAndNotification.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/registrationAndNotification.php Tue Oct 1 19:47:01 2002 @@ -62,6 +62,74 @@ var $url; } +function getLocalInteropServer($testname,$id) { + $localServer = array(); + $localBaseUrl = 'http://localhost/soap_interop/'; + $localServer['service_id']=$id; + $localServer['name']='Local PEAR::SOAP'; + $localServer['version']=SOAP_LIBRARY_VERSION; + switch ($testname) { + case 'Round 2 Base': + $localServer['endpointURL']=$localBaseUrl.'server_Round2Base.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/interop.wsdl.php'; + return new serverInfo($localServer); + case 'Round 2 Group B': + $localServer['endpointURL']=$localBaseUrl.'server_Round2GroupB.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/interopB.wsdl.php'; + return new serverInfo($localServer); + case 'Round 2 Group C': + $localServer['endpointURL']=$localBaseUrl.'server_Round2GroupC.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/echoheadersvc.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D EmptySA': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/emptysa.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D Compound 1': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/compound1.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D Compound 2': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/compound2.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D DocLit': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/InteropTestDocLit.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D DocLitParams': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/InteropTestDocLitParameters.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D Import 1': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/import1.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D Import 2': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/import2.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D Import 3': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/import3.wsdl.php'; + return new serverInfo($localServer); + case 'Round 3 Group D RpcEnc': + $localServer['endpointURL']=$localBaseUrl.'server_Round3GroupD.php'; + $localServer['wsdlURL']=$localBaseUrl.'wsdl/InteropTestRpcEnc.wsdl.php'; + return new serverInfo($localServer); + #case 'Round 3 Group E DocLit': + #case 'Round 3 Group E RpcEnc': + #case 'Round 3 Group F Extensibility': + #case 'Round 3 Group F ExtensibilityRequired': + #case 'Round 3 Group F Headers': + #case 'Round 4 DIME/Doc Attachments': + #case 'Round 4 DIME/RPC Attachments': + #case 'Round 4 MIME/Doc Attachments': + #case 'Round 4 SwA/RPC Attachments': + } + return NULL; +} + class SOAP_Interop_registrationAndNotificationService_ServicesPort extends SOAP_Client { function SOAP_Interop_registrationAndNotificationService_ServicesPort() { $this->SOAP_Client("http://soap.4s4c.com/registration/soap.asp", 0); @@ -274,12 +342,25 @@ $res = $this->dbc->query("insert into services (id,name,description,wsdlURL,websiteURL) ". "values('{$service->id}','{$service->name}','{$service->description}','{$service->wsdlURL}','{$service->websiteURL}')"); } - } } + function _updateOrAddServer($id, $server) { + $res = $this->dbc->getRow("select id from serverinfo where service_id='$id' and name='{$server->name}'"); + if ($res && !PEAR::isError($res)) { + $res = $this->dbc->query("update serverinfo set ". + "version='{$server->version}', ". + "endpointURL='{$server->endpointURL}', ". + "wsdlURL='{$server->wsdlURL}' where id={$res['id']}"); + } else { + $res = $this->dbc->query("insert into serverinfo (service_id,name,version,endpointURL,wsdlURL) ". + "values('$id','{$server->name}','{$server->version}','{$server->endpointURL}','{$server->wsdlURL}')"); + } + } + function updateServerDb() { + global $INTEROP_LOCAL_SERVER; if (!$this->connectDB()) return false; $this->retreiveServiceList(); $c = count($this->services); @@ -288,17 +369,13 @@ echo "Updating Servers for {$this->services[$i]->name}<br>\n"; if (!$this->servers) continue; foreach ($this->servers as $server) { - $res = $this->dbc->getRow("select id from serverinfo where service_id='{$this->services[$i]->id}' and name='{$server->name}'"); - if ($res && !PEAR::isError($res)) { - $res = $this->dbc->query("update serverinfo set ". - "version='{$server->version}', ". - "endpointURL='{$server->endpointURL}', ". - "wsdlURL='{$server->wsdlURL}' where id={$res['id']}"); - } else { - $res = $this->dbc->query("insert into serverinfo (service_id,name,version,endpointURL,wsdlURL) ". - "values('{$this->services[$i]->id}','{$server->name}','{$server->version}','{$server->endpointURL}','{$server->wsdlURL}')"); - } - + $this->_updateOrAddServer($this->services[$i]->id,$server); + } + // add the local server now + if ($INTEROP_LOCAL_SERVER) { + $server = getLocalInteropServer($this->services[$i]->name,$this->services[$i]->id); + if ($server) + $this->_updateOrAddServer($this->services[$i]->id,$server); } } } Index: pear/SOAP_Interop/server_Round2Base.php diff -u pear/SOAP_Interop/server_Round2Base.php:1.1 pear/SOAP_Interop/server_Round2Base.php:1.2 --- pear/SOAP_Interop/server_Round2Base.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/server_Round2Base.php Tue Oct 1 19:47:01 2002 @@ -17,13 +17,35 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: server_Round2Base.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: server_Round2Base.php,v 1.2 2002/10/01 23:47:01 shane Exp $ // require_once 'SOAP/Server.php'; require_once 'interop_Round2Base.php'; $base = new SOAP_Interop_Base(); $server = new SOAP_Server; +$server->_auto_translation = true; + $server->addObjectMap($base,'http://soapinterop.org/'); $server->service(isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:NULL); + +$test = '<?xml version="1.0" encoding="UTF-8"?> + +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:ns4="http://soapinterop.org/" + SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> +<SOAP-ENV:Body> + +<ns4:echoStruct> +<inputStruct> +<varString xsi:type="xsd:string">arg</varString> +<varInt xsi:type="xsd:int">34</varInt> +<varFloat xsi:type="xsd:float">325.325</varFloat></inputStruct></ns4:echoStruct> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope>'; +#$server->service($test,'',TRUE); + ?> Index: pear/SOAP_Interop/server_Round2GroupB.php diff -u pear/SOAP_Interop/server_Round2GroupB.php:1.1 pear/SOAP_Interop/server_Round2GroupB.php:1.2 --- pear/SOAP_Interop/server_Round2GroupB.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/server_Round2GroupB.php Tue Oct 1 19:47:01 2002 @@ -17,13 +17,39 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: server_Round2GroupB.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: server_Round2GroupB.php,v 1.2 2002/10/01 23:47:01 shane Exp $ // require_once 'SOAP/Server.php'; require_once 'interop_Round2GroupB.php'; $groupb = new SOAP_Interop_GroupB(); $server = new SOAP_Server; +$server->_auto_translation = true; + $server->addObjectMap($groupb,'http://soapinterop.org/'); $server->service(isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:NULL); + +$test = '<?xml version="1.0" encoding="UTF-8"?> + +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:ns4="http://soapinterop.org/" + SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> +<SOAP-ENV:Body> + +<ns4:echoNestedStruct> +<inputStruct> +<varString xsi:type="xsd:string">arg</varString> +<varInt xsi:type="xsd:int">34</varInt> +<varFloat xsi:type="xsd:float">325.325</varFloat> +<varStruct> +<varString xsi:type="xsd:string">arg</varString> +<varInt xsi:type="xsd:int">34</varInt> +<varFloat xsi:type="xsd:float">325.325</varFloat></varStruct></inputStruct></ns4:echoNestedStruct> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope>'; +#$server->service($test,'',TRUE); + ?> Index: pear/SOAP_Interop/server_Round2GroupC.php diff -u pear/SOAP_Interop/server_Round2GroupC.php:1.1 pear/SOAP_Interop/server_Round2GroupC.php:1.2 --- pear/SOAP_Interop/server_Round2GroupC.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/server_Round2GroupC.php Tue Oct 1 19:47:01 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: server_Round2GroupC.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: server_Round2GroupC.php,v 1.2 2002/10/01 23:47:01 shane Exp $ // require_once 'SOAP/Server.php'; require_once 'interop_Round2Base.php'; @@ -25,6 +25,8 @@ $groupc_headers = new SOAP_Interop_GroupC_Headers(); $base = new SOAP_Interop_Base(); $server = new SOAP_Server; +$server->_auto_translation = true; + $server->addObjectMap($groupc_headers,'http://soapinterop.org/echoheader/'); $server->addObjectMap($base,'http://soapinterop.org/'); $server->service(isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:NULL); Index: pear/SOAP_Interop/server_Round3GroupD.php diff -u pear/SOAP_Interop/server_Round3GroupD.php:1.1 pear/SOAP_Interop/server_Round3GroupD.php:1.2 --- pear/SOAP_Interop/server_Round3GroupD.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/server_Round3GroupD.php Tue Oct 1 19:47:02 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: server_Round3GroupD.php,v 1.1 2002/09/01 02:39:06 shane Exp $ +// $Id: server_Round3GroupD.php,v 1.2 2002/10/01 23:47:02 shane Exp $ // require_once 'SOAP/Server.php'; require_once 'interop_Round3GroupD.php'; @@ -26,7 +26,25 @@ $groupd = new SOAP_Interop_GroupD(); $server = new SOAP_Server; +$server->_auto_translation = true; + $server->addObjectMap($groupd,'http://soapinterop/'); +$server->addObjectMap($groupd,'http://soapinterop.org/xsd'); + $server->service(isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:NULL); +$test = '<?xml version="1.0" encoding="UTF-8"?> + +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:ns4="http://soapinterop.org/xsd" +> +<SOAP-ENV:Body> + +<ns4:x_Document>Test Document Here</ns4:x_Document> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope>'; +#$server->service($test,'',TRUE); ?> Index: pear/SOAP_Interop/wsdl/InteropTestDocLit.wsdl.php diff -u pear/SOAP_Interop/wsdl/InteropTestDocLit.wsdl.php:1.1 pear/SOAP_Interop/wsdl/InteropTestDocLit.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/InteropTestDocLit.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/InteropTestDocLit.wsdl.php Tue Oct 1 19:47:02 2002 @@ -130,7 +130,7 @@ <service name="WSDLInteropTestDocLitService"> <port binding="tns:WSDLInteropTestDocLitPortBinding" name="WSDLInteropTestDocLitPort"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/InteropTestDocLitParameters.wsdl.php diff -u pear/SOAP_Interop/wsdl/InteropTestDocLitParameters.wsdl.php:1.1 pear/SOAP_Interop/wsdl/InteropTestDocLitParameters.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/InteropTestDocLitParameters.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/InteropTestDocLitParameters.wsdl.php Tue Oct 1 19:47:02 2002 @@ -170,7 +170,7 @@ <service name="WSDLInteropTestDocLitService"> <port binding="tns:WSDLInteropTestDocLitPortBinding" name="WSDLInteropTestDocLitPort"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/InteropTestRpcEnc.wsdl.php diff -u pear/SOAP_Interop/wsdl/InteropTestRpcEnc.wsdl.php:1.1 pear/SOAP_Interop/wsdl/InteropTestRpcEnc.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/InteropTestRpcEnc.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/InteropTestRpcEnc.wsdl.php Tue Oct 1 19:47:02 2002 @@ -121,7 +121,7 @@ <service name="WSDLInteropTestRpcEncService"> <port binding="tns:WSDLInteropTestRpcEncPortBinding" name="WSDLInteropTestRpcEncPort"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/compound1.wsdl.php diff -u pear/SOAP_Interop/wsdl/compound1.wsdl.php:1.1 pear/SOAP_Interop/wsdl/compound1.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/compound1.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/compound1.wsdl.php Tue Oct 1 19:47:03 2002 @@ -80,7 +80,7 @@ </binding> <service name="Compound1"> <port name="SoapInteropCompound1Port" binding="wsdlns:SoapInteropCompound1Binding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/compound2.wsdl.php diff -u pear/SOAP_Interop/wsdl/compound2.wsdl.php:1.1 pear/SOAP_Interop/wsdl/compound2.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/compound2.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/compound2.wsdl.php Tue Oct 1 19:47:03 2002 @@ -61,7 +61,7 @@ </binding> <service name="Compound2"> <port name="SoapInteropCompound2Port" binding="wsdlns:SoapInteropCompound2Binding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/echoheadersvc.wsdl.php diff -u pear/SOAP_Interop/wsdl/echoheadersvc.wsdl.php:1.1 pear/SOAP_Interop/wsdl/echoheadersvc.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/echoheadersvc.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/echoheadersvc.wsdl.php Tue Oct 1 19:47:03 2002 @@ -10,7 +10,7 @@ <service name="interopLabEchoHeader"> <port name="interopPortEchoHdr" binding="tns:InteropEchoHeaderBinding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round2.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round2GroupC.php"/> </port> </service> Index: pear/SOAP_Interop/wsdl/emptysa.wsdl.php diff -u pear/SOAP_Interop/wsdl/emptysa.wsdl.php:1.1 pear/SOAP_Interop/wsdl/emptysa.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/emptysa.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/emptysa.wsdl.php Tue Oct 1 19:47:03 2002 @@ -33,7 +33,7 @@ </binding> <service name="EmptySA"> <port name="SoapInteropEmptySAPort" binding="wsdlns:SoapInteropEmptySABinding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/import1.wsdl.php diff -u pear/SOAP_Interop/wsdl/import1.wsdl.php:1.1 pear/SOAP_Interop/wsdl/import1.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/import1.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/import1.wsdl.php Tue Oct 1 19:47:03 2002 @@ -22,7 +22,7 @@ </binding> <service name="Import1"> <port name="SoapInteropImport1Port" binding="wsdlns:SoapInteropImport1Binding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/import2.wsdl.php diff -u pear/SOAP_Interop/wsdl/import2.wsdl.php:1.1 pear/SOAP_Interop/wsdl/import2.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/import2.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/import2.wsdl.php Tue Oct 1 19:47:03 2002 @@ -22,7 +22,7 @@ </binding> <service name="Import2"> <port name="SoapInteropImport2Port" binding="wsdlns:SoapInteropImport2Binding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/import3.wsdl.php diff -u pear/SOAP_Interop/wsdl/import3.wsdl.php:1.1 pear/SOAP_Interop/wsdl/import3.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/import3.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/import3.wsdl.php Tue Oct 1 19:47:03 2002 @@ -71,7 +71,7 @@ </binding> <service name="Import3"> <port name="SoapInteropImport3Port" binding="wsdlns:SoapInteropImport3Binding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round3.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round3GroupD.php"/> </port> </service> </definitions> Index: pear/SOAP_Interop/wsdl/interop.wsdl.php diff -u pear/SOAP_Interop/wsdl/interop.wsdl.php:1.1 pear/SOAP_Interop/wsdl/interop.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/interop.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/interop.wsdl.php Tue Oct 1 19:47:03 2002 @@ -12,7 +12,7 @@ <service name="interopLab"> <port name="interopTestPort" binding="tns:InteropTestSoapBinding"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round2.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round2Base.php"/> </port> </service> Index: pear/SOAP_Interop/wsdl/interopB.wsdl.php diff -u pear/SOAP_Interop/wsdl/interopB.wsdl.php:1.1 pear/SOAP_Interop/wsdl/interopB.wsdl.php:1.2 --- pear/SOAP_Interop/wsdl/interopB.wsdl.php:1.1 Sat Aug 31 22:39:06 2002 +++ pear/SOAP_Interop/wsdl/interopB.wsdl.php Tue Oct 1 19:47:03 2002 @@ -8,7 +8,7 @@ <service name="interopLabB"> <port name="interopTestPortB" binding="tns:InteropTestSoapBindingB"> - <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_round2.php"/> + <soap:address location="http://<?php echo $_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"];?>/soap_interop/server_Round2GroupB.php"/> </port> </service>
« previous php.pear.cvs (#6809) next »