2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Merging the Limesurvey 1.91+ branch of queXS in to the trunk

This commit is contained in:
azammitdcarf
2011-09-08 01:58:41 +00:00
parent dfa55a3b9e
commit eaa9578ab8
2312 changed files with 811461 additions and 597534 deletions

View File

@@ -0,0 +1,4 @@
#tims Verzeichnisschutz
order deny,allow
deny from all
allow from 127.0.0.1

View File

@@ -0,0 +1,453 @@
<?php
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* $Id: lsrc.client.php 9648 2011-01-07 13:06:39Z c_schmitz $
*
*/
class lsrcClient {
//Configuration...
/**change this to the installation path, where you want to try the functions.*/
public $limeUrl = 'http://localhost/limesource/limesurvey_dev';
/** this have to be an admin account for full functionality*/
public $user = 'admin';
/** password to the account*/
public $pass = 'password';
/**
* normally you do not have to change following.
* But sometimes you maybe want to change this to an static wsdl file like i.e. '/admin/remotecontrol/lsrc.wsdl'.*/
public $wsdl = '/admin/remotecontrol/lsrc.wsdl';
public $path2wsdl = ''; //will get concatinated from $limeUrl and $wsdl on prepare
private $sid; //just the initial value
private $soapClient; //the soapClient object
/**
* use this to initiate the SoapClient Class and prepare the use of it
* you have to set the surveyId here, if you work on a particular survey
* @param $sid the surveyid
* @return 1 for "client initiated", 0 for "something went wrong"
*/
public function prepare($sid = 0)
{
$this->path2wsdl = $this->limeUrl.$this->wsdl;
// $this->user = $user;
// $this->pass = $pass;
$this->sid = $sid;
//print_r(get_declared_classes());
ini_set("allow_url_fopen", 1);
$file = fopen($this->path2wsdl,"r");
if(class_exists('SoapClient') && $file!=FALSE)
{
try
{
$this->soapClient = new SoapClient($this->path2wsdl, array('soap_version' => SOAP_1_1,
'trace' => 1));
return 1;
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
}
else
{
return 0;
}
}
/**
* Used in the testclient to show if the SOAP class is available, libXML is there in the minimum version and if the wsdl can be reached
* @return HTML String
*/
public function soapCheck ()
{
$soapCheck ='<div style="color:white;background-color:black;border: 1px solid green;">';
if(class_exists('SoapClient'))
{
$soapCheck .= "<div style='float:left;background:green;color:white;padding:5px;margin-right:5px;'>
SOAP Erweiterung existiert</div> ";
}
else
{
$soapCheck .= "<div style='float:left;background:red;color:white;padding:5px;margin-right:5px;'>
SOAP Erweiterung fehlt!</div> ";
}
if(LIBXML_VERSION>=20540)
{
$soapCheck .= " <div style='float:left;background:green;color:white;padding:5px;margin-right:5px;'>
libXML version '".LIBXML_DOTTED_VERSION."' OK</div>";
}
else
{
$soapCheck .= " <div style='float:left;background:red;color:white;padding:5px;margin-right:5px;'>
libXML version '".(LIBXML_DOTTED_VERSION )."' nicht OK</div>";
}
// Check ob eine wsdl Datei gefunden werden kann
//$wsdlfile = ;
ini_set("allow_url_fopen", 1);
if (!fopen($this->path2wsdl,"r"))
{
$soapCheck .= "<div style='float:left;background:red;color:white;padding:5px;'>
Der Pfad zur WSDL Datei ist nicht korrekt oder die WSDL Datei fehlt!</div>";
}
else
{
$soapCheck .= "<div style='float:left;background:green;color:white;padding:5px;'>
WSDL Datei konnte gefunden werden</div>";
}
$soapCheck .= "<div style='clear:both;background-color:black;'>
<form action='".$_SERVER['PHP_SELF']."' method='post'>
<input type='text' name='wsdl' size='97' value='".$this->path2wsdl."' disabled='disabled' />
<input type='submit' name='validate' value='neu checken!' />
</form>
</div></div>";
return $soapCheck;
}
/**
* Used in the testclient to show the Serverfunctions, as given in the wsdl.
* @return HTML String
*/
public function getServerFunctions()
{
$return = "<b>Client object public functions:</b> <font style='font-size:x-small'>(As given in the wsdl file. Functions could be disabled or else on the serverside. There is no guarantee the public functions really have these Params nor that the public functions exist on the serverside.)</font><br/>";
if (!(!fopen($this->path2wsdl,"r")))
{
$funcs = $this->soapClient->__getFunctions();
foreach($funcs as $func)
{
$return .= '<p><font style="font-family:tahoma, arial;font-size:small;" >';
$return .= $func;
$return .= '</font></p>';
}
}
return $return;
}
/**
* Used by testclient to show the Request and Response. This is valuable information for debugging.
* @return HTML String
*/
public function getResponse()
{
$sOutput .="<br/><br/>Dumping <b>request headers</b>:<br/><pre>"
.$this->soapClient->__getLastRequestHeaders()."</pre>";
$sOutput .="Dumping <b>request</b>:<code>".htmlentities($this->soapClient->__getLastRequest())."</code>";
$sOutput .="<br/><br/><br/> Dumping <b>response headers</b>:<br/><pre>"
.$this->soapClient->__getLastResponseHeaders()."</pre>";
$sOutput .="<br/>Dumping <b>response</b>:<br/><code>".htmlentities($this->soapClient->__getLastResponse())."</code>";
return $sOutput;
}
/**
* Used to get the available module names for other functions like importQuestion, importGroup, createSurvey and so on
* @param $mode - can be 'core'(surveys), 'mod'(groups) or 'que'(questions)
* @return modules csv
*/
public function getAvailableModules ($mode = 'mod')
{
try
{
return $this->soapClient->sAvailableModules($this->user, $this->pass, $mode);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
}
/**
* Sends a statistic of a particular survey, to the given E-Mail adress
* @param $email - E-Mail adress of the reciever
* @param $type - 'pdf', 'xls' or 'html' is possible... the Format in which the statistic is delivered. pdf and xls will be an attachment
* @param $graph - '0' or '1' ... have only an effect on pdf statistics. If '1' graphs will be embedded in the pdf, '0' will embed no images in the pdf
* @return 'PDF send', 'HTML send, 'XLS send' or throws a SoapFault
*/
public function sendStatistics ( $email, $type = 'pdf', $graph)
{
try
{
$sReturn = $this->soapClient->fSendStatistic($this->user, $this->pass, $this->sid, $email, $type, $graph);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* returns the fieldmap of a particular survey
* @return fieldmap as csv
*/
public function getFieldmap()
{
try
{
$sReturn = $this->soapClient->sGetFieldmap($this->user, $this->pass, $this->sid);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* sends invitation, reminder or custom Mails to participants in the token list of a particular survey
* @param $type - custom, remind, invite
* @param $maxmails - set the maximum amount of mails to be send in one go. repeat until all mails are send
* @param $subject - set the subject for custom mails
* @param $message - set the message for custom mails
* @return String ('No Mails to send', 'XX Mails send', 'XX Mails send, XX Mails left to send')
*/
public function sendMail( $type, $maxmails, $subject, $message)
{
try
{
$sReturn = $this->soapClient->sSendEmail($this->user, $this->pass, $this->sid, $type, $maxmails, $subject, $message);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* deletes a particular survey
* @return String 'Survey XX deleted' or a SoapFault
*/
public function deleteSurvey()
{
try
{
$sReturn = $this->soapClient->sDeleteSurvey($this->user, $this->pass, $this->sid);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* imports a Matrix 5scale question. Normally there is a "Matrix5.csv" in directory 'que' which is used for this. But you can use an own exported Matrix 5 question with any other name of course
* @param $title - Question Code
* @param $question - The Question text
* @param $help - Help Text for this question
* @param $items - Items to rate on the 5scale, Comma seperated
* @param $module - optional Parameter, if not given, he tries with Matrix5, which should be OK
* @param $mandatory - optional paramter. If not given, the question will not be mandatory. Use 'Y' to make the question mandatory
* @return String 'OK' or throws a SoapFault
*/
public function importMatrix ($title, $question, $help, $items, $module = "Matrix5", $mandatory='N' )
{
try
{
$sReturn = $this->soapClient->sImportMatrix($this->user, $this->pass, $this->sid, $title, $question, $help, $items, $module, $mandatory);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* imports a Freetext Question. Normally there is a "Freitext.csv" in the directory 'que' which is used for this.
* @param $title - Question Code
* @param $question - The Question text
* @param $help - Help Text for this question
* @param $module - optional Parameter, if not given, he tries with 'Freitext', which should be OK
* @param $mandatory - optional paramter. If not given, the question will not be mandatory. Use 'Y' to make the question mandatory
* @return String "OK" or throws SoapFault
*/
public function importFreetext ($title, $question, $help, $module = "Freitext", $mandatory='N' )
{
try
{
$sReturn = $this->soapClient->sImportFreetext($this->user, $this->pass, $this->sid, $title, $question, $module, $mandatory);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* Imports a Question in questions directory. Use getAvailableModules('que') to get all available question.csv's to import.
* @param $module - name of the question file, without the filesuffix
* @param $mandatory - optional paramter. If not given, the question will not be mandatory. Use 'Y' to make the question mandatory
* @return String "OK" or throws SoapFault
*/
public function importQuestion ($module, $mandatory='N')
{
try
{
$sReturn = $this->soapClient->sImportQuestion($this->user, $this->pass, $this->sid, $module, $mandatory);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
$sOutput .= "<br/><br/><b>Return</b>: ". $sReturn;
}
/**
* Imports a Group in groups directory. Use getAvailableModules('mod') to get all available group.csv's to import.
* @param $module - name of the group file, without the filesuffix
* @param $name - name of the Group
* @param $description - description text for the group
* @return String "Import OK" or throws SoapFault
*/
public function importGroup ($module, $name, $description)
{
try
{
$sReturn = $this->soapClient->sImportGroup($this->user, $this->pass, $this->sid, $module, $name, $description);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* activates a survey
* @param $start - optional, set a startdate 'YYYY-MM-DD'
* @param $end - optional, set an enddate 'YYYY-MM-DD'
* @return surveyid of the activated survey or throws a SoapFault
*/
public function activateSurvey($start = "1980-01-01", $end = "1980-01-01")
{
try
{
$sReturn = $this->soapClient->sActivateSurvey($this->user, $this->pass, $this->sid, $start, $end);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* potential bad function. You can crash your whole database with this. It is not enabled by default in the server.
* You can change ALL the db tables in Limesurvey with this. Only enable and use it, if you know 100% what you are doing
* @param $table - dbtable to change (without prefix)
* @param $key - field to change
* @param $value - value to set
* @param $where - the where clause
* @param $mode - insert or update
* @return unknown_type
*/
public function changeSurvey($table, $key, $value, $where, $mode)
{
try
{
$sReturn = $this->soapClient->sChangeSurvey($this->user, $this->pass, $table, $key, $value, $where, $mode);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* Function to import a survey into the database and change some Values.
* @param $title
* @param $description
* @param $welcome
* @param $endtext
* @param $email
* @param $name
* @param $url
* @param $urldesc
* @param $module
* @param $autord - optional
* @return unknown_type
*/
public function createSurvey($title, $description, $welcome, $endtext, $email, $name, $url, $urldesc, $module, $autord='N')
{
try
{
$sReturn = $this->soapClient->sCreateSurvey($this->user, $this->pass, $this->sid, $title, $description, $welcome, $endtext, $email, $name, $url, $urldesc, $module, $autord);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* add Tokens to the token table of a particular survey, or create a new one, if it does not exist
* @param $tokencsv
* @return unknown_type
*/
public function insertToken($tokencsv)
{
try
{
$sReturn = $this->soapClient->sInsertToken($this->user, $this->pass, $this->sid, $tokencsv );
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* Function to insert Participant data while auto creating token if non is supported...
* @param $participantData - (FIRSTNAME;LASTNAME;EMAIL;LANG;TOKEN;VALIDFROM;VALIDTO;attrib1,attrib2,attrib3,attrib4,attrib5::)
* @return unknown_type
*/
public function insertParticipants($participantData)
{
try
{
$sReturn = $this->soapClient->sInsertParticipants($this->user, $this->pass, $this->sid, $participantData);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
/**
* function to return unused Tokens as String, seperated by commas, to get the people who did not complete the Survey
* @return String unused Tokes as csv
*/
public function tokenReturn ()
{
try
{
$sReturn = $this->soapClient->sTokenReturn($this->user, $this->pass, $this->sid);
}
catch (SoapFault $fault)
{
throw new SoapFault($fault->faultcode, $fault->faultstring);
}
return $sReturn;
}
}

View File

@@ -1,27 +1,26 @@
<?php
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* $Id: lsrc.config.php 6937 2009-05-26 12:28:29Z wahrendorff $
*
*/
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* $Id: lsrc.config.php 8540 2010-03-31 11:37:19Z texens $
*
*/
### Including
// including LimeSurvey configs, for database variables and more...
// including LimeSurvey configs, for database variables and more...
// only include if this config is not used to save a survey.csv for the lsrc
if(!isset($export4lsrc))
{
include("../../config-defaults.php");
include("../../config.php");
require_once(dirname(__FILE__).'/../../common.php');
include_once("../../config-defaults.php");
require_once(dirname(__FILE__).'/../../common.php');
}
### Error Handling
// simple debug Option
@@ -37,15 +36,15 @@ ini_set("log_errors", "1");
### Caching
//we don't like caching while testing, so we disable it...
//we don't like caching while testing, so we disable it...
//for productiv use it's recommended to set this to 1 or comment it out for webserver default
ini_set("soap.wsdl_cache_enabled", "0");
ini_set("soap.wsdl_cache_enabled", "0");
### Security
// enable for ssl connections
// enable for ssl connections
// this is for wsdl generation, on true the url to the server in the wsdl beginns with https instead of http
$lsrcOverSSL=true; //default: false
$lsrcOverSSL=false; //default: false
// enable if you use a certificate for the Connections
// IMPORTANT NOTE: your Client need the same certificate to connect with.
@@ -55,12 +54,12 @@ $sslCert='D:\\xampp\apache\privkey.pem';
//C:\\path\myCert.pem
### Variables
// path to the wsdl definition for this server... normally it is in the same directory, so you don't need to change it.
// path to the wsdl definition for this server... normally it is in the same directory, so you don't need to change it.
$wsdl= $homedir."/remotecontrol/lsrc.wsdl"; //default: $homedir."/remotecontrol/lsrc.wsdl";
/**
* These are the Dirs where the prepared survey csv's are or have to be.
* one for the core surveys,
* These are the Dirs where the prepared survey csv's are or have to be.
* one for the core surveys,
* one for addable groups,
* one for addable questions
*/
@@ -72,7 +71,7 @@ $queDir = "./questions/";
//seperator for Tokens in sInsertToken function
$sLsrcSeparator = ","; //default: ","
//set the Seperators for Participant Datasets in sInsertParticipants
//set the Seperators for Participant Datasets in sInsertParticipants
$sDatasetSeperator = "::"; //default: "::"
$sDatafieldSeperator = ";"; //default: ";"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@
targetNamespace="urn:lsrcNamespace">
<xsd:element name="string" type="xsd:string"></xsd:element>
</xsd:schema>
</types>
</types>
<message name="sCreateSurveyRequest">
<documentation>Function to start Surveys in LimeSurvey...
</documentation>
@@ -32,8 +32,9 @@
String expected. Put together from TYP, DOZENTEN- TITLE, -NAME,
</documentation>
</part>
<part name="sVwel" type="xsd:string"></part>
<part name="sVwel" type="xsd:string"></part>
<part name="sVend" type="xsd:string"></part>
<part name="sMail" type="xsd:string"><documentation>The E-Mail Adress of the Person who to contact in matters of evaluation. Limesurvey uses this to send notifications of Surveyparticipation, if wante</documentation></part>
<part name="sName" type="xsd:string"><documentation>The Name of the Administrator, resp. the Person whos email Adress was given
</documentation></part>
@@ -95,7 +96,8 @@
<part name="sParticipantData" type="xsd:string">
<documentation>Data for Participant expected in this format: [Firstname];[Lastname];[email@email.de]::[Firstname];[Lastname];[email@email.de]::[Firstname];[Lastname];[email@email.de] and so on... seperate the Datasets with :: and the Datafields in the Sets with ;
</documentation>
</documentation>
</part>
</message>
<message name="sInsertParticipantsResponse">
<part name="return" type="xsd:string" >
@@ -120,7 +122,8 @@
</message>
<message name="sTokenReturnResponse">
<part name="return" type="xsd:string" >
<documentation>String of unused Tokens seperated by comma
</documentation>
@@ -196,7 +199,9 @@
<part name="sPass" type="xsd:string"></part>
<part name="iVid" type="xsd:int"></part>
<part name="sMod" type="xsd:string"></part>
<part name="sPass" type="xsd:string"></part>
<part name="sMandatory" type="xsd:string"></part>
</message>
<message name="sImportQuestionResponse">
<part name="return" type="xsd:string"></part>
@@ -219,11 +224,14 @@
<message name="sImportFreetextRequest">
<part name="sUser" type="xsd:string"></part>
<part name="sPass" type="xsd:string"></part>
<part name="fault" element="xsd:string"></part>
<part name="iVid" type="xsd:int"></part>
<part name="sTitle" type="xsd:string"></part>
<part name="sQuestion" type="xsd:string"></part>
<message name="sImportFreetextRequest">
<part name="sUser" type="xsd:string"></part>
<part name="sPass" type="xsd:string"></part>
<part name="sHelp" type="xsd:string"></part>
<part name="sMod" type="xsd:string"></part>
<part name="sMandatory" type="xsd:string"></part>
</message>
<message name="sImportFreetextResponse">
<part name="return" type="xsd:string"></part>
@@ -234,13 +242,15 @@
<message name="sImportMatrixRequest">
<part name="sUser" type="xsd:string"></part>
<part name="sPass" type="xsd:string"></part>
<part name="return" type="xsd:string"></part>
<part name="iVid" type="xsd:int"></part>
<part name="sTitle" type="xsd:string"></part>
<part name="sQuestion" type="xsd:string"></part>
<part name="fault" element="xsd:string"></part>
<part name="qHelp" type="xsd:string"></part>
<part name="sItems" type="xsd:string"></part>
<message name="sImportMatrixRequest">
<part name="sUser" type="xsd:string"></part>
<part name="sMod" type="xsd:string"></part>
<part name="sMandatory" type="xsd:string"></part>
</message>
<message name="sImportMatrixResponse">
<part name="return" type="xsd:string"></part>
@@ -286,6 +296,20 @@
<message name="sGetFieldmapFault">
<part name="fault" element="xsd:string"></part>
</message>
<message name="fSendStatisticRequest">
<part name="sUser" type="xsd:string"></part>
<part name="sPass" type="xsd:string"></part>
<part name="iVid" type="xsd:int"></part>
<part name="email" type="xsd:string"></part>
<part name="doctype" type="xsd:string"></part>
<part name="graph" type="xsd:string"></part>
</message>
<message name="fSendStatisticResponse">
<part name="return" type="xsd:string"></part>
</message>
<message name="fSendStatisticFault">
<part name="fault" element="xsd:string"></part>
</message>
<portType name="LsrcPortType">
<operation name="sCreateSurvey" >
<documentation>Creates (Import and activate) a Survey in LimeSurvey</documentation>
@@ -354,244 +378,345 @@
<operation name="sSendEmail">
<input name="sSendEmailRequest" message="tns:sSendEmailRequest"></input>
<output name="sSendEmailResponse" message="tns:sSendEmailResponse"></output>
<fault name="sImportMatrixFault" message="tns:sImportMatrixFault"></fault>
</operation>
<operation name="sDeleteSurvey">
<input name="sDeleteSurveyRequest" message="tns:sDeleteSurveyRequest"></input>
<fault name="sSendEmailFault" message="tns:sSendEmailFault"></fault>
</operation>
<operation name="sGetFieldmap">
<input message="tns:sGetFieldmapRequest" name="sGetFieldmapRequest"></input>
<output message="tns:sGetFieldmapResponse" name="sGetFieldmapResponse"></output>
<fault name="sDeleteSurveyFault" message="tns:sDeleteSurveyFault"></fault>
<fault name="sGetFieldmapFault" message="tns:sGetFieldmapFault"></fault>
</operation>
<operation name="fSendStatistic">
<input message="tns:fSendStatisticRequest" name="fSendStatisticRequest"></input>
<output message="tns:fSendStatisticResponse" name="fSendStatisticResponse"></output>
<fault name="fSendStatisticsFault" message="tns:fSendStatisticFault"></fault>
</operation>
</portType>
<binding name="LsrcBinding" type="tns:LsrcPortType">
<fault name="sSendEmailFault" message="tns:sSendEmailFault"></fault>
</operation>
<operation name="sGetFieldmap">
<input message="tns:sGetFieldmapRequest" name="sGetFieldmapRequest"></input>
<output message="tns:sGetFieldmapResponse" name="sGetFieldmapResponse"></output>
<fault name="sGetFieldmapFault" message="tns:sGetFieldmapFault"></fault>
</operation>
</portType>
<binding name="LsrcBinding" type="tns:LsrcPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="sGetFieldmap">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sGetFieldmapRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sGetFieldmapResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sGetFieldmapFault">
<soap:fault name="sGetFieldmapFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sSendEmail">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sSendEmailRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sSendEmailResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sSendEmailFault">
<soap:fault name="sDeleteSurveyFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sDeleteSurvey">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sDeleteSurveyRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
<output name="sDeleteSurveyResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sDeleteSurveyFault">
<soap:fault name="sDeleteSurveyFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sImportMatrix">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sImportMatrixRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportMatrixResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportMatrixFault">
<soap:fault name="sImportMatrixFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sImportFreetext">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sImportFreetextRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportFreetextResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportFreetextFault">
<soap:fault name="sImportFreetextFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sImportQuestion">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sImportQuestionRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportQuestionResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportQuestionFault">
<soap:fault name="sImportQuestionFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sAvailableModules">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sAvailableModulesRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="sGetFieldmap">
<output name="sAvailableModulesResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sAvailableModulesFault">
<soap:fault name="sAvailableModulesFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sImportGroup">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sImportGroupRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportGroupResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportGroupFault">
<soap:fault name="sImportGroupFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sActivateSurvey">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sActivateSurveyRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sActivateSurveyResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sActivateSurveyFault">
<soap:fault name="sActivateSurveyFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sChangeSurvey">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sChangeSurveyRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sChangeSurveyResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sChangeSurveyFault">
<soap:fault name="sChangeSurveyFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sCreateSurvey">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sCreateSurveyRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sCreateSurveyResponse">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sCreateSurveyFault">
<soap:fault name="sCreateSurveyFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sInsertToken">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sInsertTokenRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sInsertTokenResponse" >
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sInsertTokenFault">
<soap:fault name="sInsertTokenFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sInsertParticipants">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sInsertParticipantsRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sInsertParticipantsResponse" >
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sInsertParticipantsFault">
<soap:fault name="sInsertParticipantsFault" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>
<operation name="sTokenReturn">
<soap:operation soapAction="urn:lsrcNamespaceAction" style="rpc" />
<input name="sTokenReturnRequest">
<soap:body namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
<soap:operation soapAction="urn:lsrcNamespace/sGetFieldmap" />
<input name="sGetFieldmapRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sGetFieldmapResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sGetFieldmapFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sGetFieldmapFault" />
</fault>
</operation>
<operation name="sSendEmail">
<soap:operation soapAction="urn:lsrcNamespace/sSendEmail" />
<input name="sSendEmailRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sSendEmailResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sSendEmailFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sSendEmailFault" />
</fault>
</operation>
<operation name="sDeleteSurvey">
<soap:operation soapAction="urn:lsrcNamespace/sDeleteSurvey" />
<input name="sDeleteSurveyRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sDeleteSurveyResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sDeleteSurveyFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sDeleteSurveyFault" />
</fault>
</operation>
<operation name="sImportMatrix">
<soap:operation soapAction="urn:lsrcNamespace/sImportMatrix" />
<input name="sImportMatrixRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportMatrixResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportMatrixFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sImportMatrixFault" />
</fault>
</operation>
<operation name="sImportFreetext">
<soap:operation
soapAction="urn:lsrcNamespace/sImportFreetext" />
<input name="sImportFreetextRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportFreetextResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportFreetextFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sImportFreetextFault" />
</fault>
</operation>
<operation name="sImportQuestion">
<soap:operation
soapAction="urn:lsrcNamespace/sImportQuestion" />
<input name="sImportQuestionRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportQuestionResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportQuestionFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sImportQuestionFault" />
</fault>
</operation>
<operation name="sAvailableModules">
<soap:operation
soapAction="urn:lsrcNamespace/sAvailableModules" />
<input name="sAvailableModulesRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sAvailableModulesResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sAvailableModulesFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sAvailableModulesFault" />
</fault>
</operation>
<operation name="sImportGroup">
<soap:operation soapAction="urn:lsrcNamespace/sImportGroup" />
<input name="sImportGroupRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sImportGroupResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sImportGroupFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sImportGroupFault" />
</fault>
</operation>
<operation name="sActivateSurvey">
<soap:operation
soapAction="urn:lsrcNamespace/sActivateSurvey" />
<input name="sActivateSurveyRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sActivateSurveyResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sActivateSurveyFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sActivateSurveyFault" />
</fault>
</operation>
<operation name="sChangeSurvey">
<soap:operation soapAction="urn:lsrcNamespace/sChangeSurvey" />
<input name="sChangeSurveyRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sChangeSurveyResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sChangeSurveyFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sChangeSurveyFault" />
</fault>
</operation>
<operation name="sCreateSurvey">
<soap:operation soapAction="urn:lsrcNamespace/sCreateSurvey" />
<input name="sCreateSurveyRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sCreateSurveyResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sCreateSurveyFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sCreateSurveyFault" />
</fault>
</operation>
<operation name="sInsertToken">
<soap:operation soapAction="urn:lsrcNamespace/sInsertToken" />
<input name="sInsertTokenRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sInsertTokenResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sInsertTokenFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sInsertTokenFault" />
</fault>
</operation>
<operation name="sInsertParticipants">
<soap:operation
soapAction="urn:lsrcNamespace/sInsertParticipants" />
<input name="sInsertParticipantsRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sInsertParticipantsResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sInsertParticipantsFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sInsertParticipantsFault" />
</fault>
</operation>
<operation name="sTokenReturn">
<soap:operation soapAction="urn:lsrcNamespace/sTokenReturn" />
<input name="sTokenReturnRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="sTokenReturnResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="sTokenReturnFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="sTokenReturnFault" />
</fault>
</operation>
<operation name="fSendStatistic">
<soap:operation soapAction="urn:lsrcNamespace/fSendStatistic" />
<input name="fSendStatisticRequest">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output name="fSendStatisticResponse">
<soap:body use="encoded" namespace="urn:lsrcNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="fSendStatisticsFault">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="fSendStatisticsFault" />
</fault>
</operation>
</binding>
<output name="sTokenReturnResponse" >
<soap:body namespace="urn:lsrcNamespace"
<service name="LsrcService">
<documentation>This is the LsrcService
for remote starting surveys and registering tokens in LimeSurvey.
Make sure to modify the soap:address to the current Location of the lsrcserver.php

View File

@@ -0,0 +1,4 @@
#tims Verzeichnisschutz
order deny,allow
deny from all
allow from 127.0.0.1

View File

@@ -0,0 +1,4 @@
#tims Verzeichnisschutz
order deny,allow
deny from all
allow from 127.0.0.1

File diff suppressed because it is too large Load Diff