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 e-mail 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