note 77248 added to function.soap-soapserver-handle

From: Date: Tue, 21 Aug 2007 16:23:38 +0000
Subject: note 77248 added to function.soap-soapserver-handle
Groups: php.notes 
Request: Send a blank email to php-notes+get-129675@lists.php.net to get a copy of this message
Sometime, it happens that PHP does not detect anything in $HTTP_RAW_POST_DATA. To solve this problem and make it work in any case: function soaputils_autoFindSoapRequest() { global $HTTP_RAW_POST_DATA; if($HTTP_RAW_POST_DATA) return $HTTP_RAW_POST_DATA; $f = file("php://input"); return implode(" ", $f); } $server = new SoapServer($wsdl); $server->setClass($MyClass); $server->handle(soaputils_autoFindSoapRequest()); ---- Server IP: 195.221.21.36 Probable Submitter: 81.252.101.133 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapserver-handle.php Edit -- https://master.php.net/note/edit/77248 Del: integrated -- https://master.php.net/note/delete/77248/integrated Del: useless -- https://master.php.net/note/delete/77248/useless Del: bad code -- https://master.php.net/note/delete/77248/bad+code Del: spam -- https://master.php.net/note/delete/77248/spam Del: non-english -- https://master.php.net/note/delete/77248/non-english Del: in docs -- https://master.php.net/note/delete/77248/in+docs Del: other reasons-- https://master.php.net/note/delete/77248 Reject -- https://master.php.net/note/reject/77248 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129675) next »