note 75078 added to function.soap-soapclient-soapcall

From: Date: Fri, 11 May 2007 08:10:45 +0000
Subject: note 75078 added to function.soap-soapclient-soapcall
Groups: php.notes 
Request: Send a blank email to php-notes+get-126404@lists.php.net to get a copy of this message
When I have to manage a long number in the header, the __soapCall function returns a float number in exponential format. The returned value can't be sent to the server because it is different from the original one ( for the floating point values limited precision ). Example : // Server sended value : 339051398236687110 $soapclient->__soapCall('beginSession',$parameters, null, null,$header); echo $header["sessionID"]; // returns 3.3905139823669E+17 or 339051398236687050 ( converted to sting) // and that is different from the original 339051398236687110 $strNum = $soapclient->__getLastResponse(); preg_match("([0-9-]{19,20})", $strNum, $args); // Extracts the correct sessionID value as a string $headers = new SoapHeader( "http://xml.apache.org/axis/session", "sessionID", $args[0]); $soapclient->__soapCall('nextCall', $parameters, null, $headers); ---- Server IP: 213.92.11.19 Probable Submitter: 217.169.121.12 (proxied: 1.1 TELPRX002RM001) ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-soapcall.php Edit -- https://master.php.net/note/edit/75078 Del: integrated -- https://master.php.net/note/delete/75078/integrated Del: useless -- https://master.php.net/note/delete/75078/useless Del: bad code -- https://master.php.net/note/delete/75078/bad+code Del: spam -- https://master.php.net/note/delete/75078/spam Del: non-english -- https://master.php.net/note/delete/75078/non-english Del: in docs -- https://master.php.net/note/delete/75078/in+docs Del: other reasons-- https://master.php.net/note/delete/75078 Reject -- https://master.php.net/note/reject/75078 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126404) next »