473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Protected objects serialization on SOAP sessions

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.

Mar 30 '06 #1
1 2091
Well,

I've found that someone has troubles with the same issue... see Bug
#36424 Serializable interface breaks object references:
http://bugs.php.net/bug.php?id=36424.

Nice!

Sebastián

Mar 31 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stuart Robertson | last post by:
I am trying to find a solution that will allow me to use XmlSerializer to serialize/deserialize a collection of objects where a given object is shared between two or more other objects, and not...
1
by: cjmumford | last post by:
I have a couple of C# objects like this: class Foo { } class Bar { Foo m_foo; Foo foo {
1
by: Mike Logan | last post by:
I have a schema that defines my messages and objects. I then have a WSDL that defines the web services. I have my sample XSD, sample WSDL, and the code generated from WSDL.exe. In the generated...
15
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.