note 127605 added to class.soapclient

From: Date: Fri, 09 Sep 2022 08:46:37 +0000
Subject: note 127605 added to class.soapclient
Groups: php.notes 
Request: Send a blank email to php-notes+get-219547@lists.php.net to get a copy of this message
In case a soap response returns nodes with the attribute xsi:nil="false", they are currently not processed by php-soapclient. This seems to be a bug (not correct). Workaround: class mySoapClient extends SoapClient { public function __doRequest($request, $location, $action, $version, $one_way = 0) { $response = parent::__doRequest($request, $location, $action, $version, $one_way); $response = str_replace('xsi:nil="false"',"",$response); return $response; } } Took me a day. Hope it can help Toppi ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.173 (proxied: 20.4.77.48) ---- Manual Page -- https://php.net/manual/en/class.soapclient.php Edit -- https://main.php.net/note/edit/127605 Del: integrated -- https://main.php.net/note/delete/127605/integrated Del: useless -- https://main.php.net/note/delete/127605/useless Del: bad code -- https://main.php.net/note/delete/127605/bad+code Del: spam -- https://main.php.net/note/delete/127605/spam Del: non-english -- https://main.php.net/note/delete/127605/non-english Del: in docs -- https://main.php.net/note/delete/127605/in+docs Del: other reasons-- https://main.php.net/note/delete/127605 Reject -- https://main.php.net/note/reject/127605 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219547) next »