Connecting to testlink

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Connecting to testlink

Postby Quark » Mon Nov 28, 2016 1:25 pm

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:
Request
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><methodCall xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><methodName>tl.checkDevKey</methodName><params><param><value><struct><member><name>devKey</name><value>[my-dev-key]</value></member></struct></value></param></params></methodCall>

Response:
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.

Regards,
Quark
Quark
TestLink user
 
Posts: 2
Joined: Sat Nov 26, 2016 12:18 pm

Re: Connecting to testlink

Postby Quark » Tue Nov 29, 2016 1:54 pm

Hi,

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.

Regards,
Quark
Quark
TestLink user
 
Posts: 2
Joined: Sat Nov 26, 2016 12:18 pm


Return to XML-RPC API



Who is online

Users browsing this forum: No registered users and 3 guests