• findByContent is not working with php

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #6844  by sajeesh
 
I am trying to search files by content. But I am getting repository exception error.
Here is the code.
Code: Select all
<?php
  // Register WSDL
  $OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
  $OKMSearch = new SoapClient('http://localhost:8080/OpenKM/OKMSearch?wsdl');

  // Login
  $token = $OKMAuth->login('user09','pass09');

$queryResultArrayResult = $OKMSearch->findByContent($token, 'test');
$queryResultArray = $queryResultArrayResult->value;
?>
I have no idea, where I am doing wrong.
 #6852  by sajeesh
 
I am using OpenKM version : 4.1
and I got this error
Code: Select all
Fatal error: Uncaught SoapFault exception: [env:Server] cd4b2eb4-e29b-44d6-9c1c-9ed4b671bdcf in E:\apache\htdocs\sajeesh\openkm\test1.php:11 
	Stack trace: #0 [internal function]: SoapClient->__call('findByContent', Array) 
	#1 E:\apache\htdocs\sajeesh\openkm\test1.php(11): SoapClient->findByContent('196700568473420...', 'test') 
	#2 {main} thrown in E:\apache\htdocs\sajeesh\openkm\test1.php on line 11
 #6885  by pavila
 
Perhaps you should try with OpenKM 5.0 because this error is very unusual. Seems to be related to the repository backend.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.