You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-01-10 16:12:52

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Webservices 2.0.0

Hi,

It's the first time I'm trying using and know the webservices plugin.

Following the documentation, I can run glpi.test, glpi.doLogin (that gives me a session), but now, any request I trying to do, I have an error 500 and session always after xmlrpc.php?session

I can't make glpi.doLogout,

Here a print of my screen: https://ibb.co/SKV8x3C

How can I do glpi.doLogout for clean that session?

I did try but always get error

Offline

#2 2020-01-10 19:57:26

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: Webservices 2.0.0

Update:

I was need delete the file located on /root/.config/glpi_webservices_config to can do anything without the error 500.

But now, after method glpi.doLogin, any request that I make, gives me again error 500.

Why happening that?

Am I doing something wrong?

Offline

#3 2020-01-10 20:03:46

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: Webservices 2.0.0

But if I remove the file, after do glpi.doLogin and tryes execute the method glpi.getMyInfo tells me "Not authenticated".

I need do again glpi.doLogin, but next any method request send error 500.

Need help to exit out that

Offline

#4 2020-01-22 16:55:09

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Webservices 2.0.0

Have you many GLPI on the same computer?
How do you call glpi.doLogin?
Version of GLPI used?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2020-01-23 17:25:23

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: Webservices 2.0.0

yllen wrote:

Have you many GLPI on the same computer?
How do you call glpi.doLogin?
Version of GLPI used?

Hi,

Thanks by your reply.

I'm using GLPI 9.4.2, only this version in my server.

Here what I'm doing:

https://ibb.co/yBzQMtv

I can return status and do Login.

But, when I try quit or any other method, have error 500, like below:

https://ibb.co/9gGwBsF

I'm reading documentation from here: https://forge.glpi-project.org/projects … MLRPC-call

Please, let me know if I'm doing something wrong??  Since now I appreciate it.

Offline

#6 2020-01-28 17:20:52

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Webservices 2.0.0

OK i think i understand.

After the glpi.doLogin, you don't have to call the other method with --session parameter.
Now, your session is stocked in glpi_webservices_config
In your picture, you have method called with session parameter adding two time


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#7 2020-01-28 17:30:22

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: Webservices 2.0.0

yllen wrote:

OK i think i understand.

After the glpi.doLogin, you don't have to call the other method with --session parameter.
Now, your session is stocked in glpi_webservices_config
In your picture, you have method called with session parameter adding two time

Thanks by your answer again.

So, even I only doLogin, I have a response with session.
If then I try doLogout after doLogin, I have a error 500

Here my image:
https://ibb.co/hYTQNYv

Offline

Board footer

Powered by FluxBB