Welcome, Guest
Username: Password: Remember me

TOPIC: Remote control problem

Remote control problem 2 years 11 months ago #64215

  • hribowc
  • hribowc's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hello everyone

I'm new to limesurvey development so I'm looking for some help. When I try to use remote control to create a survey I get an error.
Can please someone help.

Here is the error:
SOAP Error: Server: : Import went wrong somehow

And here is the code:
<?php
 
$wsdl="http://localhost/limesurvey/admin/remotecontrol/lsrc.server.php?wsdl";
$client = new SoapClient($wsdl, array('soap_version' => SOAP_1_1,
                  'trace' => 1));
 
 
 
try 
{
     $sReturn = $client->screateSurvey("username" , 
                                     "pass", 
                                     "100", 
                                     "Tesntnaaaaaaa", 
                                     "Poskus");
 
 
 
 
} 
catch (SoapFault $fault) 
{
    // $sOutput .= 
    echo " <br/><br/>SOAP Error: ".$fault->faultcode." : ".$fault->faultstring;
}
 
 
?>
The administrator has disabled public write access.

Re: Remote control problem 2 years 11 months ago #64524

  • fvillerot
  • fvillerot's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 21
  • Thank you received: 2
  • Karma: 2
Your wsdl file isn't "http://localhost/limesurvey/admin/remotecontrol/lsrc.server.php?wsdl"
but "http://localhost/limesurvey/admin/remotecontrol/lsrc.wsdl"

This file doesn't exist in the distribution. You must create it by using the URL "http://localhost/limesurvey/admin/remotecontrol/lsrc.server.php?wsdl" the first time, and after forget this URL.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.162 seconds
Donation Image