From: roderja at hotmail dot com
Operating system: windows xp
PHP version: 5.1.2
PHP Bug Type: SOAP related
Bug description: Bad Request. Can't find HTTP_RAW_POST_DATA
Description:
------------
Run the web services server, and got the following messgae.
"Can't find HTTP_RAW_POST_DATA"
I put the server1.php and its myservice.wsdl at the same folder. Thanks.
Reproduce code:
---------------
<?php
function SayHello() {
return 'Hello';
}
ini_set("soap.wsdl_cache_enabled", "0");
$server = new SoapServer("myservice.wsdl");
$server->addFunction("getQuote");
$server->handle();
Expected result:
----------------
Hello
Actual result:
--------------
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Bad Request. Can't find HTTP_RAW_POST_DATA</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--
Edit bug report at http://bugs.php.net/?id=36544&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36544&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36544&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36544&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36544&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36544&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36544&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36544&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36544&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36544&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36544&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36544&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36544&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36544&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36544&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36544&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36544&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36544&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36544&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36544&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36544&r=mysqlcfg