Reply to Protected objects serialization on SOAP sessions

Your name:

Reply:


Posted by Sebastian Araya on 03/30/06 22:35

Hello,

I'm facing a little problem with php 5.1 and SOAP sessions. I've
built a class which uses a few internal objects to solve a query, named

CWebService, and I've issued a:


$objServer = new SoapServer( 'WebService.wsdl' );
$objServer->setClass( 'CWebService' );
$objServer->setPersistence( SOAP_PERSISTENCE_SESSION );
$objServer->handle();


to leave php to manage all the intercommunication, which works great.

The problem is that between calls to differents methods (messages of
the WS) the internal objects lost their persistency. I mean, when in
the client side...:


$objWS = new SoapClient( 'WebService.wsdl' );
// Set a few arguments which altered internal objects behaviour
$objWS->setup( arg1, arg2, arg3 );
// Ooops! Internal objects lost their data
$objWS->query();


I've tried with serialize() and unserialize(), trying to leave the
serialization stored into a variable of CWebService class (in server
side), but it seems doesn't work properly... maybe 'cos internal
objects have their own internal objects...?


Any clue ...? Really thanks...


Sebastián.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация