#33044 [NEW]: My Soap Server programmed by PHP can't get variable $HTTP_RAW_POST_DATA

From: Date: Tue, 17 May 2005 05:38:56 +0000
Subject: #33044 [NEW]: My Soap Server programmed by PHP can't get variable $HTTP_RAW_POST_DATA
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79068@lists.php.net to get a copy of this message
From: liyong at nenu dot edu dot cn Operating system: Win2K Server PHP version: 5.0.3 PHP Bug Type: SOAP related Bug description: My Soap Server programmed by PHP can't get variable $HTTP_RAW_POST_DATA Description: ------------ I write a wsdl file, i specify a php file as soap address. But in this php file, $HTTP_RAW_POST_DATA variable is not set ; and php://input can't read also. I had open "always_populate_raw_post_data" option in "php.ini" . this is $_SERVER:( [ALL_HTTP] => HTTP_ACCEPT:application/octet-stream, text/xml HTTP_CONNECTION:Keep-Alive HTTP_HOST:205.120.1.196 HTTP_USER_AGENT:Borland SOAP 1.1 HTTP_CONTENT_LENGTH:579 HTTP_CONTENT_TYPE:text/xml HTTP_CACHE_CONTROL:no-cache [HTTPS] => off [SCRIPT_NAME] => /new/SoapServer.php [HTTP_COOKIE] => [AUTH_PASSWORD] => [AUTH_TYPE] => [AUTH_USER] => [CONTENT_LENGTH] => 579 [CONTENT_TYPE] => text/xml [PATH_TRANSLATED] => D:\voiceService [QUERY_STRING] => [REMOTE_ADDR] => 205.120.1.150 [REMOTE_HOST] => 205.120.1.150 [REMOTE_USER] => [REQUEST_METHOD] => POST [SERVER_NAME] => 205.120.1.196 [SERVER_PORT] => 80 [SERVER_PROTOCOL] => HTTP/1.1 [SERVER_SOFTWARE] => Microsoft-IIS/5.0 [APPL_MD_PATH] => /LM/W3SVC/1/Root [APPL_PHYSICAL_PATH] => D:\voiceService [INSTANCE_ID] => 1 [INSTANCE_META_PATH] => /LM/W3SVC/1 [LOGON_USER] => [REQUEST_URI] => /new/SoapServer.php [URL] => /new/SoapServer.php [SCRIPT_FILENAME] => D:\voiceService\new\SoapServer.php [ORIG_PATH_INFO] => /new/SoapServer.php [PATH_INFO] => [ORIG_PATH_TRANSLATED] => D:\voiceService\new\SoapServer.php [DOCUMENT_ROOT] => D:\voiceService [PHP_SELF] => /new/SoapServer.php [HTTP_ACCEPT] => application/octet-stream, text/xml [HTTP_CONNECTION] => Keep-Alive [HTTP_HOST] => 205.120.1.196 [HTTP_USER_AGENT] => Borland SOAP 1.1 [HTTP_CONTENT_LENGTH] => 579 [HTTP_CONTENT_TYPE] => text/xml [HTTP_CACHE_CONTROL] => no-cache [argv] => Array ( ) [argc] => 0 ) Reproduce code: --------------- this is WSDL file: <?xml version="1.0" ?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="IcallipReturnservice" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <message name="cipRetRequest"> <part name="resultcode" type="xs:unsignedInt" /> <part name="serialNo" type="xs:unsignedInt" /> </message> <message name="cipRetResponse"> <part name="return" type="xs:boolean" /> </message> <portType name="IcallipReturn"> <operation name="cipRet"> <input message="tns:cipRetRequest" /> <output message="tns:cipRetResponse" /> </operation> </portType> <binding name="IcallipReturnbinding" type="tns:IcallipReturn"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> <operation name="cipRet"> <soap:operation soapAction="urn:callipReturn-IcallipReturn#cipRet" style="rpc" /> <input> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:callipReturn-IcallipReturn" /> </input> <output> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:callipReturn-IcallipReturn" /> </output> </operation> </binding> <service name="IcallipReturnservice"> <port name="IcallipReturnPort" binding="tns:IcallipReturnbinding"> <soap:address location="http://205.120.1.196/new/SoapServer.php" /> </port> </service> </definitions> -- Edit bug report at http://bugs.php.net/?id=33044&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33044&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33044&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33044&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33044&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33044&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33044&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33044&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33044&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33044&r=support Expected behavior: http://bugs.php.net/fix.php?id=33044&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33044&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33044&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33044&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33044&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33044&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33044&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33044&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33044&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33044&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33044&r=mysqlcfg

« previous php.bugs (#79068) next »