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 -----
From: Jean-Charles Preaux
To: phpsoaptoolkit-development@lists.sourceforge.net
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 = new xslt ('test.xml', 'test.xsl', TRUE);
$test->transform();
echo $test->output();
?>
 
then with Soap extension i did :
 
/* server.php */
<?php
require ("class.xslt.php");
 
$server = new SoapServer("urn:xslt");
 
$server->setClass('xslt');
 
$server->handle();
?>
 
/* client.php */
<?php
 
error_reporting(E_ALL);
 
$test = new SoapObject("http://localhost:8080/xslt_server.php", "urn:xslt");
 

$test->xslt('test.xml', 'test.xsl', TRUE);
 
$test->transform();
 
echo $test->output();
 
if($test->__isFault())
  var_dump($test->__getFault())
 
?>
 
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