Page 1 of 1

Connecting to testlink

PostPosted: Mon Nov 28, 2016 1:25 pm
by Quark
Hi all,

my question is related to a problem, that seems to be a very famous one, as I found lots of entries in the net, but unfortunately nobody provided solution for it

I have an installation of testlink-1.9.15 on a virtual machine (OS is Windows 7 Proffesional). It is running on a XAMPP. Firewall is disabled and I am in the same network.
I am trying to connect to testlink using the testlink java api, which i got from github and again I am using version 1.9.15(<version>1.9.15-1-SNAPSHOT</version>). I am getting the error:
Code: Select all
[Fatal Error] :1:1: Content is not allowed in prolog.
br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: Content is not allowed in prolog..

So I have configured a TCP/IP Monitor to check the communication and here is the result:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><methodCall xmlns:ex=""><methodName>tl.checkDevKey</methodName><params><param><value><struct><member><name>devKey</name><value>[my-dev-key]</value></member></struct></value></param></params></methodCall>

Code: Select all
XML-RPC server accepts POST requests only.

I tried modifying the xmlrpc.php as suggested in some posts over the network, but that didn't solve the problem. I have also double checked that the firewall is off.

Is this problem related to the configuration of test-link, to the xmlrpc.php on the server side or some of the client libraries I am using? My assumption is that some additional configuration needs to be applied, but I am clueless where it needs to happen.

I would appreciate any ideas or comments, as I am running out of ideas how to move on here.


Re: Connecting to testlink

PostPosted: Tue Nov 29, 2016 1:54 pm
by Quark

adding $HTTP_RAW_POST_DATA = file_get_contents("php://input");
to the xmlrpc.php file did the job for me. Now I can connect to testlink.