Port to PEAR and more * @author Jan Schneider Maintenance * @copyright 2003-2007 The PHP Group * @license http://www.php.net/license/2_02.txt PHP License 2.02 * @link http://pear.php.net/package/SOAP */ require_once 'SOAP/Client.php'; /* Client. */ $soapclient = new SOAP_Client('tcp://127.0.0.1:82'); /* Namespace. */ $options = array('namespace' => 'urn:SOAP_Example_Server', 'trace' => true); /* One. */ $params = array('string' => 'this is string 1'); $ret1 = $soapclient->call('echoString', $params, $options); echo "WIRE: \n" . $soapclient->getWire(); print_r($ret1); /* Two. */ $params = array('string' => 'this is string 2'); $ret2 = $soapclient->call('echoString', $params, $options); echo "WIRE: \n" . $soapclient->getWire(); print_r($ret2);