note 127604 added to class.soapclient

From: Date: Fri, 09 Sep 2022 08:46:32 +0000
Subject: note 127604 added to class.soapclient
Groups: php.notes 
Request: Send a blank email to php-notes+get-219548@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/127604 Del: integrated -- https://main.php.net/note/delete/127604/integrated Del: useless -- https://main.php.net/note/delete/127604/useless Del: bad code -- https://main.php.net/note/delete/127604/bad+code Del: spam -- https://main.php.net/note/delete/127604/spam Del: non-english -- https://main.php.net/note/delete/127604/non-english Del: in docs -- https://main.php.net/note/delete/127604/in+docs Del: other reasons-- https://main.php.net/note/delete/127604 Reject -- https://main.php.net/note/reject/127604 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219548) next »