Not sure but as far as I know instance of the class is never created. =
All methods have to be static by nature. So the constructor is never =
called.
But if you do some kind of persistence then you can call the constructor =
explicitly.
Andrey
----- Original Message -----=20
From: Jean-Charles Preaux=20
To: php...@li... ; =
php...@li...=20
Sent: Monday, May 13, 2002 4:06 PM
Subject: [PHP-SOAP-DEV] Re: setClass newbie question
Hye
In fact, i tried the sessions object samples and it works fine but
my trouble is that the class which i bind o the SoapServer has a =
constructor
and can't create a new object.
How can i do ?
thanks
Jean-Charles Preaux
----- Original Message -----=20
From: Jean-Charles Preaux=20
To: php...@li...=20
Sent: Friday, May 10, 2002 10:38 AM
Subject: setClass newbie question
hello
I try to use the setClass method but i don't understand how it =
works.
i have a php class called 'xslt', when i want to use it, i do :
<?php
require ('class.xslt.php');
$test =3D new xslt ('test.xml', 'test.xsl', TRUE);
$test->transform();
echo $test->output();
?>
then with Soap extension i did :=20
/* server.php */
<?php
require ("class.xslt.php");
$server =3D new SoapServer("urn:xslt");
$server->setClass('xslt');=20
$server->handle();
?>
/* client.php */
<?php=20
error_reporting(E_ALL);
$test =3D new SoapObject("http://localhost:8080/xslt_server.php", =
"urn:xslt");=20
$test->xslt('test.xml', 'test.xsl', TRUE);
$test->transform();
echo $test->output();
if($test->__isFault())
var_dump($test->__getFault())
?>=20
But it doesn't work and no error returned.
My question is : Did i do a mistake?, How can i use this method ?
Thanks you for your advices
Jean-Charles Preaux
http://analogx.dyndns.org
icq://125624822
|