note 108987 added to soapserver.construct

From: Date: Sun, 10 Jun 2012 14:35:55 +0000
Subject: note 108987 added to soapserver.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-188517@lists.php.net to get a copy of this message
// Workin Server with Client for localhost // server.php <?php class MyClass { public function helloWorld() { return 'Hallo Welt '. print_r(func_get_args(), true); } } try { $server = new SOAPServer( NULL, array( 'uri' => 'http://localhost/soap/server.php' ) ); $server->setClass('MyClass'); $server->handle(); } catch (SOAPFault $f) { print $f->faultstring; } ?> // client.php: <?php $client = new SoapClient(null, array( 'location' => "http://localhost/soap/server.php", 'uri' => "http://localhost/soap/server.php", 'trace' => 1 )); echo $return = $client->__soapCall("helloWorld",array("world")); ?> // Hope you like it ---- Server IP: 69.147.83.197 Probable Submitter: 91.54.12.98 ---- Manual Page -- http://www.php.net/manual/en/soapserver.construct.php Edit -- https://master.php.net/note/edit/108987 Del: integrated -- https://master.php.net/note/delete/108987/integrated Del: useless -- https://master.php.net/note/delete/108987/useless Del: bad code -- https://master.php.net/note/delete/108987/bad+code Del: spam -- https://master.php.net/note/delete/108987/spam Del: non-english -- https://master.php.net/note/delete/108987/non-english Del: in docs -- https://master.php.net/note/delete/108987/in+docs Del: other reasons-- https://master.php.net/note/delete/108987 Reject -- https://master.php.net/note/reject/108987 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188517) next »