eZPublish  3.8
eZSOAPServer Class Reference

The class eZSOAPServer handles SOAP server requensts. More...

Public Member Functions

 eZSOAPServer ()
 
 processRequest ()
 
 registerFunction ($name, $params=array())
 
 registerObject ($objectName, $includeFile=null)
 
 showResponse ($functionName, $namespaceURI, &$value)
 

Public Attributes

 $FunctionList
 Contains a list over registered functions. More...
 
 $RawPostData
 Contains the RAW HTTP post data information. More...
 

Static Private Member Functions

 stripHTTPHeader ($data)
 

Detailed Description

The class eZSOAPServer handles SOAP server requensts.

Sample code for a SOAP server with one function, addNumbers.

include_once( "lib/ezsoap/classes/ezsoapserver.php" );
$server = new eZSOAPServer( );
$server->registerFunction( "addNumbers", array( "valueA" => "integer", "valueB" => "integer" ) );
$server->registerObject( "Collection" );
$server->processRequest();
function addNumbers( $valueA, $valueB )
{
$return = $valueA + $valueB;
settype( $return, "integer" );
return $return;
}
class Collection
{
function Collection ()
{
}
function subNumbers( $valueA, $valueB )
{
$return = $valueA - $valueB;
settype( $return, "integer" );
return $return;
}
}
See Also
eZSOAPClient eZSOAPRequest eZSOAPResponse

Member Function Documentation

eZSOAPServer::eZSOAPServer ( )

Creates a new eZSOAPServer object.

eZSOAPServer::processRequest ( )

Processes the SOAP request and prints out the propper response.

eZSOAPServer::registerFunction (   $name,
  $params = array() 
)

Registers a new function on the server.

Returns false if the function could not be registered.

Referenced by registerObject().

eZSOAPServer::registerObject (   $objectName,
  $includeFile = null 
)

Registers all functions of an object on the server.

Returns false if the object could not be registered.

eZSOAPServer::showResponse (   $functionName,
  $namespaceURI,
$value 
)

Referenced by processRequest().

eZSOAPServer::stripHTTPHeader (   $data)
staticprivate

Strips the header information from the HTTP raw response.

Referenced by processRequest().

Member Data Documentation

eZSOAPServer::$FunctionList

Contains a list over registered functions.

eZSOAPServer::$RawPostData

Contains the RAW HTTP post data information.


The documentation for this class was generated from the following file: