#33411 [Opn->Fbk]: Problems sending long objects via SOAP

From: Date: Mon, 20 Jun 2005 20:40:18 +0000
Subject: #33411 [Opn->Fbk]: Problems sending long objects via SOAP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80722@lists.php.net to get a copy of this message
ID: 33411 Updated by: sniper@php.net Reported By: abertolli at innovim dot com -Status: Open +Status: Feedback -Bug Type: *Programming Data Structures +Bug Type: SOAP related Operating System: Linux 2 PHP Version: 5.0.4 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-06-20 21:53:28] abertolli at innovim dot com Description: ------------ When connecting to SOAP services created by another language such as Java, PHP cannot handle Long objects. The problem is that PHP isn't able to cast to long, and therefore doesn't know how to match up the type in the WSDL. It ends up trying to send as an int which is rejected on the remote side. It is important to support long objects because they can be set to NULL unlike primitives. This is using the SOAP extension. Reproduce code: --------------- The WSDL would look something like this: <complexType name="AreaInfo"> <sequence> <element name="id" type="soap11-enc:long"/> </sequence> </complexType> Expected result: ---------------- To get a SOAP response Actual result: -------------- There is no SOAP response ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33411&edit=1

« previous php.bugs (#80722) next »