63 [
'query' =>
'xsd:string'], [
'return' =>
'tns:SearchResultList'],
64 $server::TNS,
$server->wsdl->endpoint.
'#search',
'document',
'literal'
68 require(
"soap-interface.php");
71 $server->service(file_get_contents(
"php://input"));
75 $response->setFormat(
'generic');
76 $response->setHeaders(
$server->getResponseHeaders());
77 $response->setValue(
'body',
$server->getResponsePayload());
85 public static function search($query) {
87 $response =
$server->doCall(
'search', [
'query' => $query]);
89 foreach ($response->getValue(
'list') as $item) {
90 $result[] = [
'type' => $item[
'type'],
'oid' => $item[
'oid'],
91 'displayValue' => $item[
'displayValue'],
'summary' => $item[
'summary']
94 return [
'return' => $result];
static search($query)
Search.
SoapServer extends nusoap server to actually process requests inside the application context.
$server
Global server instance used by the generated soap interface.
Controller is the base class of all controllers.
SOAPController handles SOAP requests.
getResponse()
Get the Response instance.