Re: [SOAP] Classmap

[email protected] (Dani Castaños)
Newsgroups php.soap
Message-ID <[email protected]>
Heitor Machado escribió:
> Hi,
>
> Somebody has been found a solution to the classmap bug. I means,  when
> you set some classmap PHP seans to ignore it and use just the
> StdClass.
>
> regards
> Heitor
>
Can you paste the code please... 'Cause it works for me!

SOAP Server code:

[...]
class SubscriberData
{
  public $id;
  public $age; 
  public $email;
  public $name;
}//class SubscriberData


/*----------------MAIN-----------------*/

$classmap = array('SubscriberData' => 'SubscriberData');
$server = new SoapServer( WS_WSDL, array('classmap' => $classmap ) );
[...]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.