You are here: Re: SOAP question - creating instances/ accessing constructor method? « PHP Programming Language « IT news, forums, messages
Re: SOAP question - creating instances/ accessing constructor method?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация