|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-05 10:44 UTC] tony2001@php.net
[2007-02-15 15:01 UTC] dmitry@php.net
[2007-02-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ When using a Web Service and passing it a PHP object that contains NULL fields, these fields end up as empty tags in the message Reproduce code: --------------- no easy code, but when using a web service that expects a document style message, e.g. <foo> <bar>...</bar> </foo> And passing an object class Foo { public $bar = 'hello'; public $baz; } The XML created is something like: ... <SOAP-ENV:Body> <message-name> <foo> <bar>Hello</bar> <baz/> </foo> </message-name> </SOAP-ENV:Body> Expected result: ---------------- The message should be: <SOAP-ENV:Body> <message-name> <foo> <bar>Hello</bar> </foo> </message-name> </SOAP-ENV:Body> Actual result: -------------- The message is: <SOAP-ENV:Body> <message-name> <foo> <bar>Hello</bar> <baz/> </foo> </message-name> </SOAP-ENV:Body>