Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #4063 Problem with Null Fields and Java
Submitted: 2005-04-05 14:45 UTC
From: phil_soap at smurfy dot de Assigned: chagenbu
Status: Closed Package: SOAP
PHP Version: 4.3.10 OS: All
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 40 - 9 = ?

 [2005-04-05 14:45 UTC] phil_soap at smurfy dot de
Description: ------------ There is a Problem when you must send a NULL object to a Tomcat 4 server. it does not detect that is a NULL Object and reports a parse error. i solved this by analysing the request send by php-soap client and a java soap client. in line 556 (base.php) it check if obj is null .... if (is_null($xmlout_value)) { $xml = "\r\n<$xmlout_name$xmlout_type$xmlns$xmlout_arrayType$xml_attr/>"; } else { .... the correct thing is: .... if (is_null($xmlout_value)) { $xml = "\r\n<$xmlout_name$xmlout_type$xmlns$xmlout_arrayType$xml_attr xsi:nil=\"true\"/>"; } else { .... so the thing i changed is: xsi:nil=\"true\" hope that helps someone else when he have the same problem ;) smurfy


 [2005-04-09 02:51 UTC] chagenbu
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Thanks!