Check out the LimeSurvey source code on GitHub!

limesurvey remote control problem

More
5 years 4 months ago - 5 years 4 months ago #66598 by jatindersidhu
I am using limesurvey remotecontrol service when i use "sCreateSurvey" function to import the servey.
i got following error:

Import went wrong somehow:
Please see the code given below.
////***************////////////
<?php
include_once("../limesurvey/admin/remotecontrol/lsrc.client.php");
/**
* initiate the testclient object
*/
$testclient = new lsrcClient();

/* prepare the lsrcClient class (initiate the soapClient, set sid if needed)
*/

$testclient->prepare(37755);

/**
* set user and password (only needed, when not set in the client class directly)
*/
$testclient->user = 'admin';
$testclient->pass = 'bf8rnsfj';

/**
* set the path2wsdl (only needed, when not set in the client class directly)
*/
$testclient->path2wsdl = 'http://localhost/limesurvey/admin/remotecontrol/lsrc.server.php?wsdl';
/**
* call the function to create a survey
*/

$sReturn = $testclient->createSurvey("new survey" ,
"this is new survey",
"welcomeText",
"endText",
"This email address is being protected from spambots. You need JavaScript enabled to view it.",
"Survey",
" www.sotobiz.com ",
"end yrl",
"template138");
echo $sReturn;

////*****************/////
File which is included in this file:

(admin/remotecontrol/lsrc.client.php)

I am using limesurvey 1.91, PHP version: 5.3
can u please help us to solve this problem.

Thanks
jatinder
Last Edit: 5 years 4 months ago by jatindersidhu.

Please Log in to join the conversation.

More
5 years 4 months ago #66617 by Mazi
As stated at our manual the LSRC feature doesn't work smoothly at the latest version:
"The latest stable release of Lime Survey Remote Control is 1.87 running on PHP 5.2. Efforts are underway to bring LSRC up to date with the current release and this page will be updated when that has happened. Until that time please continue reporting bugs via the Bugtracker(external link) and please be patient with us!"


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form