|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-15 08:22 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 18:00:01 2025 UTC |
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"