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