Example #1
0
    /**
     * Return a list of SOAP types
     *
     * @return array
     * @throws Zend_Search_Client_Exception
     */
    public function getTypes()
    {
        if ($this->getWsdl() == null) {
            throw new Zend_Search_Client_Exception('\'getTypes\' method is available only in WSDL mode.');
        }

        if ($this->_soapClient == null) {
            $this->_initSoapClientObject();
        }

        return $this->_soapClient->getTypes();
    }
Example #2
0
$wsdl = "http://" . $_SERVER['HTTP_HOST'] . "/webservice/webservice.php?class=CMISService&wsdl";
echo "<strong>WSDL file:</strong> " . $wsdl . "<br>\n";
$options = array('actor' => 'http://127.0.0.1', 'trace' => true);
$client = new SoapClient($wsdl, $options);
echo "<hr> <strong>Result from getrepositories call:</strong><br>";
$res = $client->getRepositories();
print_r($res);
echo "<hr><strong>Raw Soap response:</strong><br>";
echo htmlentities($client->__getLastResponse());
echo "<hr> <strong>Result from getrepositoryinfo call:</strong><br>";
$res = $client->getRepositoryInfo('1');
print_r($res);
echo "<hr><strong>Raw Soap response:</strong><br>";
echo htmlentities($client->__getLastResponse());
echo "<hr> <strong>Result from gettypes call:</strong><br>";
$res = $client->getTypes('1');
print_r($res);
echo "<hr><strong>Raw Soap response:</strong><br>";
echo htmlentities($client->__getLastResponse());
echo "<hr> <strong>Result from gettypedefinition (document) call:</strong><br>";
$res = $client->getTypeDefinition('1', 'Document');
print_r($res);
echo "<hr><strong>Raw Soap response:</strong><br>";
echo htmlentities($client->__getLastResponse());
echo "<hr> <strong>Result from gettypedefinition (folder) call:</strong><br>";
$res = $client->getTypeDefinition('1', 'Folder');
print_r($res);
echo "<hr><strong>Raw Soap response:</strong><br>";
echo htmlentities($client->__getLastResponse());
/*