note 63201 added to function.soap-soapserver-handle

From: Date: Wed, 15 Mar 2006 22:55:43 +0000
Subject: note 63201 added to function.soap-soapserver-handle
Groups: php.notes 
Request: Send a blank email to php-notes+get-105885@lists.php.net to get a copy of this message
In PHP5, there seem to be times when handle() doesn't "work" and complains of an Invalid Request. This may (or may not) be only if you are using WSDL... The root cause would seem to be that handle() expects to find the SOAP Request XML data in $HTTP_RAW_POST_DATA However, even turning "on" always_populate_raw_post_data does not seem to fill in that variable. Thus, you need to do like this, to snag the data from stdin and shove it into the variable handle() expects: if (!isset($HTTP_RAW_POST_DATA)){ $HTTP_RAW_POST_DATA = file_get_contents('php://input'); } YMMV ---- Server IP: 66.163.161.117 Probable Submitter: 67.108.68.36 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapserver-handle.php Edit -- http://master.php.net/note/edit/63201 Del: integrated -- http://master.php.net/note/delete/63201/integrated Del: useless -- http://master.php.net/note/delete/63201/useless Del: bad code -- http://master.php.net/note/delete/63201/bad+code Del: spam -- http://master.php.net/note/delete/63201/spam Del: non-english -- http://master.php.net/note/delete/63201/non-english Del: in docs -- http://master.php.net/note/delete/63201/in+docs Del: other reasons-- http://master.php.net/note/delete/63201 Reject -- http://master.php.net/note/reject/63201 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105885) next »