ID:               41745
 Comment by:       fredrik at wangel dot net
 Reported By:      jasper at digiweb dot co dot nz
 Status:           No Feedback
 Bug Type:         SOAP related
 Operating System: Linux
 PHP Version:      5.2.3
 New Comment:

Verified on PHP 5.2.4. Reported bug is still unsolved. In addition,
NULL values in array responses are also handled incorrectly.

I have prepared a bug41745.phpt file (based on bug39815.phpt) that will
test for the above cases and two other cases that are currently working
in PHP 5.2.4 (included for regression testing).

Should I attach the code in a comment or send it directly to someone
with CVS write access? In the meantime, get it from
http://wangel.net/fredrik/php/bugs/bug41745.phpt


Previous Comments:
------------------------------------------------------------------------

[2007-06-29 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-06-21 21:47:51] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

------------------------------------------------------------------------

[2007-06-20 02:40:17] jasper at digiweb dot co dot nz

Description:
------------
When null is provided for a SOAP parameter or the field of an object
passed as a SOAP parameter, PHP incorrectly encodes the parameter as
being empty (e.g. object with all null fields, or empty string) which is
different from an actual null. This breaks access to real-world web
services.

Reproduce code:
---------------
$soap = new SoapClient('/path/to/wsdl', array('trace' => true));
$soap->operation(null);

echo $soap->__getLastRequest();

Expected result:
----------------
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="NAMESPACE"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<SOAP-ENV:Body>
<ns1:operation>
<paramName xsi:nil="true"/>
</ns1:operation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

== OR ==

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="NAMESPACE">
<SOAP-ENV:Body>
<ns1:operation/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Actual result:
--------------
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="NAMESPACE">
<SOAP-ENV:Body>
<ns1:operation>
<paramName/>
</ns1:operation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41745&edit=1

Reply via email to