<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Sets the class which handles SOAP requests</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="soapserver.handle.html">SoapServer::handle</a></div> <div class="next" style="text-align: right; float: right;"><a href="soapserver.setobject.html">SoapServer::setObject</a></div> <div class="up"><a href="class.soapserver.html">SoapServer</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="soapserver.setclass" class="refentry"> <div class="refnamediv"> <h1 class="refname">SoapServer::setClass</h1> <p class="verinfo">(PHP 5 >= 5.0.1)</p><p class="refpurpose"><span class="refname">SoapServer::setClass</span> — <span class="dc-title">Sets the class which handles SOAP requests</span></p> </div> <div class="refsect1 description" id="refsect1-soapserver.setclass-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>SoapServer::setClass</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$class_name</code></span> [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$args</code></span> [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$...</code></span> ]] )</div> <p class="para rdfs-comment"> Exports all methods from specified class. </p> <p class="para"> The object can be made persistent across request for a given PHP session with the <span class="methodname"><a href="soapserver.setpersistence.html" class="methodname">SoapServer::setPersistence()</a></span> method. </p> </div> <div class="refsect1 parameters" id="refsect1-soapserver.setclass-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">class_name</code></em></span> <dd> <p class="para"> The name of the exported class. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">args</code></em></span> <dd> <p class="para"> These optional parameters will be passed to the default class constructor during object creation. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-soapserver.setclass-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> <div class="refsect1 seealso" id="refsect1-soapserver.setclass-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="methodname"><a href="soapserver.soapserver.html" class="methodname" rel="rdfs-seeAlso">SoapServer::SoapServer()</a> - SoapServer constructor</span></li> <li class="member"> <span class="methodname"><a href="soapserver.addfunction.html" class="methodname" rel="rdfs-seeAlso">SoapServer::addFunction()</a> - Adds one or more functions to handle SOAP requests</span></li> <li class="member"> <span class="methodname"><a href="soapserver.setpersistence.html" class="methodname" rel="rdfs-seeAlso">SoapServer::setPersistence()</a> - Sets SoapServer persistence mode</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="soapserver.handle.html">SoapServer::handle</a></div> <div class="next" style="text-align: right; float: right;"><a href="soapserver.setobject.html">SoapServer::setObject</a></div> <div class="up"><a href="class.soapserver.html">SoapServer</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>