ID:               36395
 Updated by:       [EMAIL PROTECTED]
 Reported By:      trannicholas at yahoo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Windows XP
 PHP Version:      5.1.2
 New Comment:

It is not possible to serialize PHP built-in objects. 


Previous Comments:
------------------------------------------------------------------------

[2006-02-15 01:48:46] trannicholas at yahoo dot com

Description:
------------
I am seeing some weirdness after setting the SoapClient in the session
and then retrieveing it in another page.

On the second page, I can retrieve the SoapClient from the session, but
as soon as I access a method on the SoapClient, I get this error.

"Warning: SoapClient::__call(): supplied argument is not a valid sdl
resource in welcome.php on line 18
There was a problem with your login: Error finding "uri" property"

I notice during debugging that the attributes sdl (originally :6) and
httpurl (originally :8) become 0's after the redirect.  Everything else
(location, __default_headers0 look the same. 

Reproduce code:
---------------
First php page:

session_start()
$soapclient = new SoapClient('some?WSDL');
$result = $soapclient->someOperation();
$_SESSION['client'] = $soapclient ; 


Second php page:
session_start()
$client= $_SESSION['client'];
try {
  $result = $soapclient->someOperation();
  echo $result;
} catch (exception $e) {
  echo $e;
}

Expected result:
----------------
Result

Actual result:
--------------
"Warning: SoapClient::__call(): supplied argument is not a valid sdl
resource in welcome.php on line 18
There was a problem with your login: Error finding "uri" property"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36395&edit=1

Reply via email to