#40099 [Fbk->Opn]: Cannot pass long (> 2147483647) in SOAP requests
ID: 40099
User updated by: phpbugs at henrik dot synth dot no
Reported By: phpbugs at henrik dot synth dot no
-Status: Feedback
+Status: Open
Bug Type: SOAP related
Operating System: MacOSX
PHP Version: 5.2.0
New Comment:
I sniffed the SOAP call with tcpdump, here's the result:
Host: my.host:8080
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.0
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 367
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://com.my.ws/Domain"><SOAP-ENV:Header><ns1:sessionId>1</ns1:sessionId></SOAP-ENV:Header><SOAP-ENV:Body><ns1:myFunction><Long_1>2147483647</Long_1></ns1:myFunction></SOAP-ENV:Body></SOAP-ENV:Envelope>
Previous Comments:
------------------------------------------------------------------------
[2007-01-11 13:48:47] tony2001@php.net
Cannot reproduce.
------------------------------------------------------------------------
[2007-01-11 13:35:58] phpbugs at henrik dot synth dot no
Description:
------------
It seems like numbers larger than 2^32 / 2 still are problem.
PHP should handle XSD_LONG, or at least throw a notice if it cannot.
Client was PHP 5.2.0, server was JbossWS 4.0.4GA, both on MacOSX.
Expected results are from the jboss soap debug log.
Also see http://bugs.php.net/bug.php?id=30045 and
http://bugs.php.net/bug.php?id=36999
Reproduce code:
---------------
$typedVar = new SoapVar(1168516001677, XSD_UNSIGNEDLONG);
$client->__soapCall("myFunction", array($typedVar)) );
Expected result:
----------------
<Long_1>1168516001677</Long_1>
Actual result:
--------------
<Long_1>2147483647</Long_1>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40099&edit=1
Thread (4 messages)