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 2011-04-18 13:23:00

JorgeLopez
Member
Registered: 2011-03-24
Posts: 44

[Solved] WebServices plugin problem

Hi,

  After enabling web services plugin, if I try to login using testxmlrpc.php, as 'root', from command line:

php scripts/testxmlrpc.php --method=glpi.doLogin --login_password=glpi --login_name=glpi --host=localhost

I get this error:

+ Calling 'glpi.doLogin' on http://localhost//www/plugins/webservices/xmlrpc.php
PHP Warning:  file_get_contents(http://localhost//www/plugins/webservices/xmlrpc.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /var/www/plugins/webservices/scripts/testxmlrpc.php on line 112
+ No response

Anyone knows why this message?

Thanks!
---------------
Jorge

Last edited by JorgeLopez (2011-04-18 15:07:46)


-----------
Jorge López Díaz
GLPI 0.80.4 producción, GLPI 0.83rc2 test
Ubuntu server 10.04, 10.10 y 11.04

Offline

#2 2011-04-18 13:26:48

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: [Solved] WebServices plugin problem

http://localhost//www/plugins/webservices/xmlrpc.php : the url seems invalid
use the --host and --url switchs to point to the right glpi web path

Offline

#3 2011-04-18 15:07:26

JorgeLopez
Member
Registered: 2011-03-24
Posts: 44

Re: [Solved] WebServices plugin problem

Yes, using --url do the trick.

Thanks.


-----------
Jorge López Díaz
GLPI 0.80.4 producción, GLPI 0.83rc2 test
Ubuntu server 10.04, 10.10 y 11.04

Offline

Board footer

Powered by FluxBB