Page 2 of 2

Re: How to use WebService with php

PostPosted:Thu Jul 10, 2014 11:54 am
by Sascha
Hello OKM-friends,

I need some help for my planed implementation. I think this topic is still relevant, we will only extend the informations a little bit.

Following use case is desired: There is "one" login for some jboss-instances (let's say three). The login is realized in PHP as webpage on any server in the web. The PHP-script uses webservices (WSDL). For example a user with access to all servers (three) can choose on the loginpage on which he want to be put through. This is solved in the case that he enter "user" / "password" and then he get´s a selectbox activated with the projects. The projects will be identified over the "role" because subroot-folders of okm:root pictures an project (not the hole instance). So he get´s maybe 10 projects that run on the three servers.

I hope it is described clear. Can someone send an rough design for the php script. My present ideas went so:

1. Check SOAP-Authentication with UUID / PASS on every instance/server
2. GET folders with roles (project1, project2, p3, p4, ..., p10) from affected servers and put in as options for selection
3. Pass through to instance after choosing project on loginpage and submit.
4. ....

My PHP-skills are not the best ;-) That´s why i am stumbling

Thanks for your help
Sascha

Re: How to use WebService with php

PostPosted:Fri Jul 11, 2014 4:33 pm
by jllort
You should use our sdk for php http://wiki.openkm.com/index.php/SDK_for_PHP ( there're some minimal samples and you easilly understand how using it ). The zip file also include api test. For 6.3.0 community version you must use WS 1.0

Re: How to use WebService with php

PostPosted:Fri Jul 11, 2014 9:01 pm
by Sascha
Hi jllort,

I was working with that, but my mistake was that I am using Community-Version 6.2.6 DEV and not 6.3.x
The system couldn´t find the requests. I will update and test it.

Thanks for the hint
Sascha

Re: How to use WebService with php

PostPosted:Sat Jul 12, 2014 6:06 pm
by jllort
We suggest upgrade to 6.3 but if you want to use php with your actual version then must take a look here http://wiki.openkm.com/index.php/PHP_cl ... OpenKM_6.2

Re: How to use WebService with php

PostPosted:Tue Jul 15, 2014 9:16 am
by Sascha
Is there also a version for version 5.1.8 or 5.1.9?

Re: How to use WebService with php

PostPosted:Thu Jul 17, 2014 9:38 am
by jllort
No, it's only present from 6.3, for older versions you must continue using standar php webservices support as is explained in wiki.

Re: How to use WebService with php

PostPosted:Wed Jul 23, 2014 12:35 pm
by Sascha
Ok, I am doing it with SoapClient class and wsdl. Getting and processing OKM-data works fine. Now I need to forward and login over this small PHP-Webapplication. The forwarding is simple but I still have no idea to login without the standard login of okm-server.

Someone an idea?

Re: How to use WebService with php

PostPosted:Sat Jul 26, 2014 6:07 pm
by jllort
Sascha I suggest open a new ticket about how to integrate webservices with php with your application, because it's seems your problem is more on that direction than general php webservice use. In post please try to describe what are you trying to do and if it's possible some draw or php example to try to help you better.