[PHP-SOAP-DEV] Re: setClass newbie question
Status: Alpha
Brought to you by:
rodif_bl
|
From: Jean-Charles P. <jc....@wa...> - 2002-05-13 13:06:02
|
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
|