|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33044 My Soap Server programmed by PHP can't get variable $HTTP_RAW_POST_DATA
Submitted: 2005-05-17 07:38 UTC Modified: 2005-05-17 08:59 UTC
From: liyong at nenu dot edu dot cn Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.0.3 OS: Win2K Server
Private report: No CVE-ID: None
 [2005-05-17 07:38 UTC] liyong at nenu dot edu dot cn
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

    [HTTPS] => off
    [SCRIPT_NAME] => /new/SoapServer.php
    [HTTP_COOKIE] => 
    [AUTH_TYPE] => 
    [AUTH_USER] => 
    [CONTENT_LENGTH] => 579
    [CONTENT_TYPE] => text/xml
    [PATH_TRANSLATED] => D:\voiceService
    [QUERY_STRING] => 
    [REMOTE_ADDR] =>
    [REMOTE_HOST] =>
    [REMOTE_USER] => 
    [SERVER_NAME] =>
    [SERVER_PORT] => 80
    [SERVER_SOFTWARE] => Microsoft-IIS/5.0
    [APPL_MD_PATH] => /LM/W3SVC/1/Root
    [APPL_PHYSICAL_PATH] => D:\voiceService    [INSTANCE_ID] => 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] =>
    [HTTP_USER_AGENT] => Borland SOAP 1.1
    [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="" xmlns:xs="" name="IcallipReturnservice" targetNamespace="" xmlns:tns="" xmlns:soap="" xmlns:soapenc="">
<message name="cipRetRequest">
<part name="resultcode" type="xs:unsignedInt" /> 
<part name="serialNo" type="xs:unsignedInt" /> 
<message name="cipRetResponse">
<part name="return" type="xs:boolean" /> 
<portType name="IcallipReturn">
<operation name="cipRet">
<input message="tns:cipRetRequest" /> 
<output message="tns:cipRetResponse" /> 
<binding name="IcallipReturnbinding" type="tns:IcallipReturn">
<soap:binding style="rpc" transport="" /> 
<operation name="cipRet">
<soap:operation soapAction="urn:callipReturn-IcallipReturn#cipRet" style="rpc" /> 
<soap:body use="encoded" encodingStyle="" namespace="urn:callipReturn-IcallipReturn" /> 
<soap:body use="encoded" encodingStyle="" namespace="urn:callipReturn-IcallipReturn" /> 
<service name="IcallipReturnservice">
<port name="IcallipReturnPort" binding="tns:IcallipReturnbinding">
<soap:address location="" /> 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-17 08:59 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 18:01:24 2023 UTC