Page 1 of 1

OpenKM Webservices usage

PostPosted:Wed Jul 18, 2012 3:37 pm
by bburim
Hi!
I try to use OpenKM webservices via PHP.
First I need to log in, but I can't.
It seems that login and password for webservices is different from login and password I use to access my OpenKM account.
Is it true?
Do I need to create separate account to use SOAP webservices or I am doing something wrong?

Re: OpenKM Webservices usage

PostPosted:Thu Jul 19, 2012 7:33 am
by jllort
You're doing something wrong, have you tryed the php examples at http://wiki.openkm.com/index.php/PHP_client ? take care password and users are case sensitive !!!

Re: OpenKM Webservices usage

PostPosted:Thu Jul 19, 2012 8:49 am
by bburim
Hi!
Thank you for your reply!
The problem was other..

In your examples you use
Code: Select all
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
That did not work for me.
And this did :
Code: Select all
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl', array('location' => 'http://localhost:8080/OpenKM/OKMAuth'));

Re: OpenKM Webservices usage

PostPosted:Fri Jul 20, 2012 3:47 pm
by jllort
It's really very strange because all posted php code has been tested. We will take note about it. Which php version are you using ?

Re: OpenKM Webservices usage

PostPosted:Fri Jul 27, 2012 4:09 pm
by bburim
I am using PHP Version 5.3.8.
OS: WinXP

Re: OpenKM Webservices usage

PostPosted:Tue Jul 31, 2012 10:30 am
by jllort
WinXP is older OS that is not yet supported by Microsoft we suggest use more updated OS.

Re: OpenKM Webservices usage

PostPosted:Wed Nov 14, 2012 3:31 pm
by miguelromero
The path for soap Webservices has been updated in OpenKM 6.X, I have been crazy trying to figure out what was the error.

Old wrong path and outdated example for version 6.X, dont use that code in version 6.
http://wiki.openkm.com/index.php/PHP_fileUpoad


Here is the updated document for openKM 6.X with the right path and a full example in php for most things:
http://wiki.openkm.com/index.php/PHP_client_6.0

Re: OpenKM Webservices usage

PostPosted:Fri Nov 16, 2012 8:24 am
by pavila
I have added a note where specify that only works in OpenKM 5.1.x