Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : SOAP Functions : SoapServer->handle()

SoapServer->handle()

Handles a SOAP request ()

Example 2285. Some examples

<?php
function test($x)
{
   return
$x;
}

$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction("test");
$server->handle();
?>

Code Examples / Notes » soap_soapserver_handle

king dot maxemilian

Sometime, it happens that PHP does not detect anything in $HTTP_RAW_POST_DATA.
To solve this problem and make it work in any case:
function soaputils_autoFindSoapRequest() {
global $HTTP_RAW_POST_DATA;

if($HTTP_RAW_POST_DATA)
return $HTTP_RAW_POST_DATA;

$f = file("php://input");
return implode(" ", $f);
}
$server = new SoapServer($wsdl);
$server->setClass($MyClass);
$server->handle(soaputils_autoFindSoapRequest());


Change Language


Follow Navioo On Twitter
is_soap_fault
SoapClient->__call()
SoapClient->__construct()
SoapClient->__doRequest()
SoapClient->__getFunctions()
SoapClient->__getLastRequest()
SoapClient->__getLastRequestHeaders()
SoapClient->__getLastResponse()
SoapClient->__getLastResponseHeaders()
SoapClient->__getTypes()
SoapClient->__setCookie()
SoapClient->__soapCall()
SoapFault->__construct()
SoapHeader->__construct()
SoapParam->__construct()
SoapServer->addFunction()
SoapServer->__construct()
SoapServer->fault()
SoapServer->getFunctions()
SoapServer->handle()
SoapServer->setClass()
SoapServer->setPersistence()
SoapVar->__construct()
use_soap_error_handler
eXTReMe Tracker