Consuming the iSURVEY Export Web Service v3
The web service
The iSURVEY Export Web Service uses SOAP for communication.
The Export Web Service URL:
https://www.isurveysoft.com/services...rtservice.asmx
The Export Web Service WSDL:
https://www.isurveysoft.com/services...vice.asmx?wsdl
There are two Web Service operations exposed by this webservice – ExportSurvey and
ExportSurveyResults. These two operations are intended to be used together - the ExportSurvey response
contains reference information needed to interpret the ExportSurveyResults response data.
The operations provided use up to four message parameters – Company Identifier, Survey Password,
Results Surveyed From Date, Results Surveyed To Date. For more information about obtaining the
Company Identifier and Survey Password, see iSURVEY Company Identifier and Survey Password.
ExportSurvey provides the question and answer sets for the survey.
ExportSurveyResults provides the survey result set in XML which would otherwise be provided as a CSV
file.
Web Service Operation - Export Survey
This ExportSurvey Web Service operation accepts two parameters – the Company Identifier(cp), and the
Survey PIN (sp) for authentication.
Information on where to find the Company Identifier and the Survey PIN on the isurveysoft.com web site
is described at the end of this document.
REQUEST
The sample SOAP request is provided below for SOAP 1.1 and 1.2.
SOAP 1.1
POST /servicesv3/exportservice.asmx HTTP/1.1
Host:
www.isurveysoft.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://www.isurveysoft.com/servicesv3/ExportSurvey"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns
si="http://www.w3.org/2001/XMLSchema-instance"
xmlns
sd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ExportSurvey xmlns="https://www.isurveysoft.com/servicesv3/">
<cp>string</cp>
<sp>string</sp>
</ExportSurvey>
</soap:Body>
</soap:Envelope>
RESPONSE
The Survey is exported as a Serialised Survey object. The sample SOAP response is provided below for
SOAP 1.1 and 1.2.
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns
si="http://www.w3.org/2001/XMLSchema-instance"
xmlns
sd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ExportSurveyResponse xmlns="https://www.isurveysoft.com/servicesv3/">
<ExportSurveyResult>
<SurveyId>long</SurveyId>
<SurveyName>string</SurveyName>
<ScreenIdFirst>long</ScreenIdFirst>
<SurveyThemeId>long</SurveyThemeId>
<SurveyTestMode>boolean</SurveyTestMode>
<SurveyVersion>long</SurveyVersion>
<SurveyIsPurchased>boolean</SurveyIsPurchased>
<IsDemoSurvey>boolean</IsDemoSurvey>
<Screens>
<Screen type="string" nextScreenIsLinked="boolean">
<ScreenId>long</ScreenId>
<ScreenIdNext>long</ScreenIdNext>
<ScreenText>string</ScreenText>
<ScreenInstruction>string</ScreenInstruction>
<ThemeClassId>long</ThemeClassId>
<ScreenOptions xsi:nil="true" />
<Answers xsi:nil="true" />
<Questions xsi:nil="true" />
</Screen>
<Screen type="string" nextScreenIsLinked="boolean">
<ScreenId>long</ScreenId>
<ScreenIdNext>long</ScreenIdNext>
<ScreenText>string</ScreenText>
<ScreenInstruction>string</ScreenInstruction>
<ThemeClassId>long</ThemeClassId>
<ScreenOptions xsi:nil="true" />
<Answers xsi:nil="true" />
<Questions xsi:nil="true" />
</Screen>
</Screens>
<SurveyOptions>
<SurveyOption>
<SurveyOptionRefCode>string</SurveyOptionRefCode>
<SurveyOptionValueText>string</SurveyOptionValueText>
</SurveyOption>
<SurveyOption>
<SurveyOptionRefCode>string</SurveyOptionRefCode>
<SurveyOptionValueText>string</SurveyOptionValueText>
</SurveyOption>
</SurveyOptions>
</ExportSurveyResult>
</ExportSurveyResponse>
</soap:Body></soap:Envelope>
Partager