|
Posted by Janwillem Borleffs on 10/31/17 11:25
Janwillem Borleffs wrote:
> session_start();
> $server = new SoapServer(null, array('uri' => 'http://localhost/'));
> $server->setClass('User');
> $server->setPersistence(SOAP_PERSISTENCE_SESSION);
> $server->handle();
>
You can omit the call to the session_start() function, which isn't required.
> $client = new SoapClient(
> null,
> array(
> 'location' => 'http://localhost/server.php',
> 'uri' => 'http://localhost/',
> 'trace' => 1
> )
> );
>
The trace option here is only required when you want to debug the soap
request/response with the designated functions.
JW
Navigation:
[Reply to this message]
|