ID:               36544
 User updated by:  roderja at hotmail dot com
 Reported By:      roderja at hotmail dot com
 Status:           Open
 Bug Type:         SOAP related
 Operating System: windows xp
 PHP Version:      5.1.2
 New Comment:

Could you please help me to figure out how to run this web services on
my localhost? I want to try the server and client at the same machine.
Thank you very much.
By the way, could you plese tell me where or what kind of document is
good for me to learn the PHP SOAP. ( I already know www.php.net) and
which newsgroup should I go. I appreciate.


Previous Comments:
------------------------------------------------------------------------

[2006-02-27 23:12:25] me at contents dot nl

I don't see the error. You are not executing a soap request, you're
probably just opening the the file in your browser. Hence the server
cannot find a soap request in the post data.

------------------------------------------------------------------------

[2006-02-27 16:40:52] roderja at hotmail dot com

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 this bug report at http://bugs.php.net/?id=36544&edit=1

Reply via email to