[PHP-SOAP-DEV] bug storing the SoapObject in session
Status: Alpha
Brought to you by:
rodif_bl
From: phpsurf <ph...@if...> - 2002-05-10 10:01:20
|
Hi I tried something with your 4th example : session your example shows haow to maintain a session on the server side through serveral consecutive calls to method of the SoapObject on the client side, but inside the same script. my idea was to maintain this soap-server session through several calls to the soap-client script. so I simply tried to put the SoapObject (client side) in session. here is my new session-client-src.php script: ---------------------------------------------------- <? session_start(); session_register("session"); if(!isset($session)) { echo "create Soap Client\n"; $session = new SoapObject("http://lab.localhost.com/soap/PhpSoapToolkit/samples/session-ser ver-src.php", "urn:Session"); } echo "counter:\n"; echo $session->inc() . "\n"; echo $session->inc() . "\n"; ?> ---------------------------------------------------- The 1st time I call this script, I get the following result : ---------------------------------------------------- create Soap Client counter: 0 1 ---------------------------------------------------- But the 2nd time I call this script, I get the following result which is fine (the counter is well incremented), except for the warning :) ---------------------------------------------------- counter: <br /> <b>Warning</b>: (null)(): supplied argument is not a valid httpurl resource in <b>c:\webroot\lab\soap\phpsoaptoolkit\samples\session-client-src.php</b> on line <b>12</b><br /> 2 3 ---------------------------------------------------- hope you will find out the bug ! ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |