getTokenX()

This method returns a unique token number that enables accessing other API methods without your username and password.

Input Parameter Data Type Description
Username String The username that you configured while signing up for SoGoSurvey
Password String The password that you configured while signing up for SoGoSurvey

Output Parameter Data Type Description
Token String Unique token number which you can use to access other API methods without your username and password

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strtoken = objClient.getTokenX("John_smith", "p@ssw0rd");

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1));
// The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_ getSurveyStatistics= array(
"username" =>"John_smith",
"password" =>"p@ssw0rd”,
);
$responce_param_getTokenX= $client-> getTokenX($request_param_ getTokenX);
$getTokenX_output = $client->__getLastResponse();
echo $ getTokenX_output;

Copied!
Click to copy
                           

curl -i -d "username=John_smith&password=p@ssw0rd" https://www.sogosurvey.com/_web-service/Webservice.asmx/getTokenX

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getTokenX',
{'username': 'John_smith', 'password': 'p@ssw0rd'},
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strtoken As String = objClient.getTokenX(“John_smith”, “p@ssw0rd”)
Dim strData As String =objClient.getTokenX(strtoken , "John_smith", "p@ssw0rd");

Output
<string xmlns="http://www.sogosurvey.com/_web-service">ifzshubdnkklgopsy3kdlgj0</string>
<string xmlns="http://www.sogosurvey.com/_web-service">ifzshubdnkklgopsy3kdlgj0</string>
<string xmlns="http://www.sogosurvey.com/_web-service">ifzshubdnkklgopsy3kdlgj0</string>
<string xmlns="http://www.sogosurvey.com/_web-service">ifzshubdnkklgopsy3kdlgj0</string>
<string xmlns="http://www.sogosurvey.com/_web-service">ifzshubdnkklgopsy3kdlgj0</string>

getDataInCSVX()

This method can be used to obtain survey responses in CSV format.

Input Parameter Data Type Description
Token String The token obtained using the getTokenX method
intSurveyNo String This is the unique identifier for the survey
intStartNo Integer Specify a response number to start fetching responses from
intEndNo Integer Specify the response number up to which responses need to be fetched, or use ‘0’ to fetch all responses
   
Output Parameter Data Type Description
strResponse String Responses in CSV format

To locate the Survey Number (SID), click the All Surveys icon, then hover over the survey name.

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strtoken = objClient.getTokenX("John_smith", "p@ssw0rd");
string strData = objClient.getDataInCSVX(strtoken, 5, 1, 1);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getTokenX = array(
"username" => "John_smith",
"password" => "p@ssw0rd"
);
$responce_param = $client->getTokenX($request_param_getTokenX);
$token_response = $client->__getLastResponse();
$dom = new DOMDocument();
$dom->loadXML($token_response);
$token = $dom->textContent;

$request_param_getDataInCSVX = array(
"token" => $token,
"intsurveyNo" => "5",
"intStartNo" => "1",
"intEndNo" => "1"
);
$responce_param_getDataInCSVX = $client->getDataInCSVX($request_param_getDataInCSVX);
$getDataInCSVX_output = $client->__getLastResponse();
echo $getDataInCSVX_output;

Copied!
Click to copy
                           

curl -i -d "token=pwebro1u4sjll4otgrlj34au&intsurveyNo=5&intStartNo=1&intEndNo=1" https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInCSVX

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInCSVX,
{'token': 'i0kedn4fxlvnoj5agfuqquxi', 'intsurveyNo': '5', 'intStartNo' : '1', 'intEndNo' : '1' },
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strtoken As String = objClient.getTokenX(“John_smith”, “p@ssw0rd”)
Dim strData As String =objClient.getDataInCSVX(strtoken, 5, 1, 1);

Output
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>

getDataInCSV()

This method can also be used to obtain survey responses in CSV format. As opposed to the token used in the getDataInCSVX method, this uses your username and password as input.

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strData = objClient.getDataInCSV("John_smith", "p@ssw0rd", 5, 1, 1);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getDataInCSV = array(
"username" =>"John_smith",
"password" =>"p@ssw0rd”,
"intsurveyNo" => "5",
"intStartNo" => "1",
"intEndNo" => "1"
);
$responce_param_getDataInCSV = $client->getDataInCSV($request_param_getDataInCSV);
$getDataInCSV_output = $client->__getLastResponse();
echo $getDataInCSV_output;

Copied!
Click to copy
                           

curl -i -d " username=John_smith&password=p@ssw0rd&intsurveyNo=5&intStartNo=1&intEndNo=1" https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInCSV

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInCSV,
{'username': 'John_smith', 'password': 'p@ssw0rd', 'intsurveyNo': '5', 'intStartNo' : '1', 'intEndNo' : '1' },
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strData As String =objClient.getDataInCSV("John_smith", "p@ssw0rd", 5, 1, 1);

Output
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
Sr.No.,"ResponseNo","Email Address","IP Address","1.How satisfied have you been with your experience thus far?","2.What would you like us to know?" ,,,," "," ", "1","1","Public Access","127.256.287.00","4","Staff has been great!",
</string>

getDataInXMLX()

This method can be used to obtain survey responses in XML format

Input Parameter Data Type Description
Token String The token obtained using the getTokenX method
intSurveyNo Integer This is the unique identifier for the survey
intStartNo Integer Specify a response number to start fetching responses from
intEndNo Integer Specify the response number up to which responses need to be fetched, or use ‘0’ to fetch all responses

Output Parameter Data Type Description
strResponse String Responses in XML format

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strtoken = objClient.getTokenX("John_smith", "p@ssw0rd");
string strData = objClient.getDataInXMLX(strtoken, John_smith, p@ssw0rd, 5, 1, 1);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getTokenX = array(
"username" => "John_smith",
"password" => "p@ssw0rd"
);
$responce_param = $client->getTokenX($request_param_getTokenX);
$token_response = $client->__getLastResponse();
$dom = new DOMDocument();
$dom->loadXML($token_response);
$token = $dom->textContent;

$request_param_getDataInXMLX = array(
"token" => $token,
"intsurveyNo" => "5",
"intStartNo" => "1",
"intEndNo" => "1"
);
$responce_param_getDataInXMLX = $client->getDataInXMLX($request_param_getDataInXMLX);
$getDataInXMLX_output = $client->__getLastResponse();
echo $getDataInXMLX_output;

Copied!
Click to copy
                           

curl -i -d "token=pwebro1u4sjll4otgrlj34au&intsurveyNo=5&intStartNo=1&intEndNo=1" https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInXMLX

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInXMLX,
{'token': 'i0kedn4fxlvnoj5agfuqquxi', 'intsurveyNo': '5', 'intStartNo' : '1', 'intEndNo' : '1' },
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strtoken As String = objClient.getTokenX(“John_smith”, “p@ssw0rd”)
Dim strData As String =objClient.getDataInXMLX(strtoken,"John_smith", "p@ssw0rd", 5, 1, 1);

Output
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>

getDataInXML()

This method can be used to obtain survey responses in XML format. Rather than the token used in the getDataInXMLX method, this option uses your username and password as input.

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strData = objClient.getDataInXML("John_smith", "p@ssw0rd", 5, 1, 1);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getDataInXML = array(
"username" =>"John_smith",
"password" =>"p@ssw0rd”,
"intsurveyNo" => "5",
"intStartNo" => "1",
"intEndNo" => "1"
);
$responce_param_getDataInXML = $client->getDataInXML($request_param_getDataInXML);
$getDataInXML_output = $client->__getLastResponse();
echo $getDataInXML_output;

Copied!
Click to copy
                           

curl -i -d " username=John_smith&password=p@ssw0rd&intsurveyNo=5&intStartNo=1&intEndNo=1" https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInXML

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getDataInXMLX,
{'username': 'John_smith', 'password': 'p@ssw0rd', 'intsurveyNo': '5', 'intStartNo' : '1', 'intEndNo' : '1' },
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strData As String =objClient.getDataInXML("John_smith", "p@ssw0rd", 5, 1, 1);

Output
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[How satisfied have you been with your experience thus far?]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[1]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[2]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[4]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What would you like us to know?]]>
         </QuestionText>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>127.256.287.00</IPAddress>
      <StartTime>1/25/2018 14:04</StartTime>
      <EndTime>1/25/2018 14:05</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 4]]>
         </answer>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ Staff has been great!]]>
         </answer>
      </AnswerSet>
   </IndividualResponse>
</root>
</string>
</string>

getAssessmentDataInXMLX()

This method can be used to obtain assessment responses in XML format.

Input Parameter Data Type Description
Token String The token obtained using the getTokenX method
intSurveyNo Integer This is the unique identifier for the survey
intStartNo Integer Specify a response number to start fetching responses from
intEndNo Integer Specify the response number up to which responses need to be fetched, or use ‘0’ to fetch all responses

Output Parameter Data Type Description
strResponse String Responses in XML format

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strtoken = objClient.getTokenX("John_smith", "p@ssw0rd");
string strData = objClient.getAssessmentDataInXMLX(strtoken, 5, 1, 1);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getTokenX = array(
"username" => "John_smith",
"password" => "p@ssw0rd"
);
$responce_param = $client->getTokenX($request_param_getTokenX);
$token_response = $client->__getLastResponse();
$dom = new DOMDocument();
$dom->loadXML($token_response);
$token = $dom->textContent;

$request_param_getAssessmentDataInXMLX = array(
"token" => $token,
"intsurveyNo" => "5",
"intStartNo" => "1",
"intEndNo" => "1"
);
$responce_param_getAssessmentDataInXMLX = $client->getAssessmentDataInXMLX($request_param_getAssessmentDataInXMLX);
$getAssessmentDataInXMLX_output = $client->__getLastResponse();
echo $getAssessmentDataInXMLX_output;

Copied!
Click to copy
                           

curl -i -d "token=pwebro1u4sjll4otgrlj34au&intsurveyNo=5&intStartNo=1&intEndNo=1" https://www.sogosurvey.com/_web-service/Webservice.asmx/getAssessmentDataInXMLX

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getAssessmentDataInXMLX,
{'token': 'i0kedn4fxlvnoj5agfuqquxi', 'intsurveyNo': '5', 'intStartNo' : '1', 'intEndNo' : '1' },
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strtoken As String = objClient.getTokenX(“John_smith”, “p@ssw0rd”)
Dim strData As String =objClient.getAssessmentDataInXMLX(strtoken, 5, 1, 1);

Output
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[Look at this series what number should come next?<br /> 36, 34, 30, 28, 24, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[26]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[20]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[18]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 544, 509, 474, 439, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[404]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[414]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[420]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[445]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>3</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 5.2, 4.8, 4.4, 4, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.6]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>4</QuestionNum>
         <QuestionText>
            <![CDATA[28 25 5 21 18 5 14]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[11 5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 7]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[11 8]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5 10]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>5</QuestionNum>
         <QuestionText>
            <![CDATA[9 16 23 30 37 44 51]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[59 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[56 62]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 65]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[54 61]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>6</QuestionNum>
         <QuestionText>
            <![CDATA[3 5 35 10 12 35 17]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[22 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[35 19]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 24]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22 24]]>
         </AnswerOption>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>103.246.225.50</IPAddress>
      <StartTime>10/22/2018 11:13</StartTime>
      <EndTime>10/22/2018 11:14</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 26]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ 404]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>3</QuestionNum>
         <answer>
            <![CDATA[ 3.5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>4</QuestionNum>
         <answer>
            <![CDATA[ 11 5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>5</QuestionNum>
         <answer>
            <![CDATA[ 58 66]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>6</QuestionNum>
         <answer>
            <![CDATA[ 35 19]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <TotalScore>0</TotalScore>
   </IndividualResponse>
</root>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[Look at this series what number should come next?<br /> 36, 34, 30, 28, 24, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[26]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[20]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[18]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 544, 509, 474, 439, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[404]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[414]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[420]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[445]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>3</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 5.2, 4.8, 4.4, 4, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.6]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>4</QuestionNum>
         <QuestionText>
            <![CDATA[28 25 5 21 18 5 14]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[11 5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 7]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[11 8]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5 10]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>5</QuestionNum>
         <QuestionText>
            <![CDATA[9 16 23 30 37 44 51]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[59 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[56 62]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 65]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[54 61]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>6</QuestionNum>
         <QuestionText>
            <![CDATA[3 5 35 10 12 35 17]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[22 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[35 19]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 24]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22 24]]>
         </AnswerOption>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>103.246.225.50</IPAddress>
      <StartTime>10/22/2018 11:13</StartTime>
      <EndTime>10/22/2018 11:14</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 26]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ 404]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>3</QuestionNum>
         <answer>
            <![CDATA[ 3.5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>4</QuestionNum>
         <answer>
            <![CDATA[ 11 5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>5</QuestionNum>
         <answer>
            <![CDATA[ 58 66]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>6</QuestionNum>
         <answer>
            <![CDATA[ 35 19]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <TotalScore>0</TotalScore>
   </IndividualResponse>
</root>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[Look at this series what number should come next?<br /> 36, 34, 30, 28, 24, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[26]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[20]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[18]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 544, 509, 474, 439, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[404]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[414]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[420]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[445]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>3</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 5.2, 4.8, 4.4, 4, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.6]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>4</QuestionNum>
         <QuestionText>
            <![CDATA[28 25 5 21 18 5 14]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[11 5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 7]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[11 8]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5 10]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>5</QuestionNum>
         <QuestionText>
            <![CDATA[9 16 23 30 37 44 51]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[59 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[56 62]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 65]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[54 61]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>6</QuestionNum>
         <QuestionText>
            <![CDATA[3 5 35 10 12 35 17]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[22 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[35 19]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 24]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22 24]]>
         </AnswerOption>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>103.246.225.50</IPAddress>
      <StartTime>10/22/2018 11:13</StartTime>
      <EndTime>10/22/2018 11:14</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 26]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ 404]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>3</QuestionNum>
         <answer>
            <![CDATA[ 3.5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>4</QuestionNum>
         <answer>
            <![CDATA[ 11 5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>5</QuestionNum>
         <answer>
            <![CDATA[ 58 66]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>6</QuestionNum>
         <answer>
            <![CDATA[ 35 19]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <TotalScore>0</TotalScore>
   </IndividualResponse>
</root>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[Look at this series what number should come next?<br /> 36, 34, 30, 28, 24, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[26]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[20]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[18]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 544, 509, 474, 439, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[404]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[414]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[420]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[445]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>3</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 5.2, 4.8, 4.4, 4, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.6]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>4</QuestionNum>
         <QuestionText>
            <![CDATA[28 25 5 21 18 5 14]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[11 5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 7]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[11 8]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5 10]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>5</QuestionNum>
         <QuestionText>
            <![CDATA[9 16 23 30 37 44 51]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[59 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[56 62]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 65]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[54 61]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>6</QuestionNum>
         <QuestionText>
            <![CDATA[3 5 35 10 12 35 17]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[22 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[35 19]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 24]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22 24]]>
         </AnswerOption>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>103.246.225.50</IPAddress>
      <StartTime>10/22/2018 11:13</StartTime>
      <EndTime>10/22/2018 11:14</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 26]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ 404]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>3</QuestionNum>
         <answer>
            <![CDATA[ 3.5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>4</QuestionNum>
         <answer>
            <![CDATA[ 11 5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>5</QuestionNum>
         <answer>
            <![CDATA[ 58 66]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>6</QuestionNum>
         <answer>
            <![CDATA[ 35 19]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <TotalScore>0</TotalScore>
   </IndividualResponse>
</root>
</string>
<string xmlns="http://www.sogosurvey.com/_web-service">
<?xml version="1.0" encoding="iso-8859-1" ?>
<root>
   <Questions>
      <QuestionSet>
         <QuestionNum>1</QuestionNum>
         <QuestionText>
            <![CDATA[Look at this series what number should come next?<br /> 36, 34, 30, 28, 24, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[26]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[20]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[18]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>2</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 544, 509, 474, 439, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[404]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[414]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[420]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[445]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>3</QuestionNum>
         <QuestionText>
            <![CDATA[What number should come next?<br /> 5.2, 4.8, 4.4, 4, ____]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.3]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[3.6]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>4</QuestionNum>
         <QuestionText>
            <![CDATA[28 25 5 21 18 5 14]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[11 5]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 7]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[11 8]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[5 10]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[10 5]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>5</QuestionNum>
         <QuestionText>
            <![CDATA[9 16 23 30 37 44 51]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[59 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[56 62]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 66]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[58 65]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[54 61]]>
         </AnswerOption>
      </QuestionSet>
      <QuestionSet>
         <QuestionNum>6</QuestionNum>
         <QuestionText>
            <![CDATA[3 5 35 10 12 35 17]]>
         </QuestionText>
         <AnswerOption>
            <![CDATA[22 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[35 19]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 35]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[19 24]]>
         </AnswerOption>
         <AnswerOption>
            <![CDATA[22 24]]>
         </AnswerOption>
      </QuestionSet>
   </Questions>
   <IndividualResponse>
      <SrNO>1</SrNO>
      <ResponseNum>1</ResponseNum>
      <EmailID>Public Access</EmailID>
      <IPAddress>103.246.225.50</IPAddress>
      <StartTime>10/22/2018 11:13</StartTime>
      <EndTime>10/22/2018 11:14</EndTime>
      <AnswerSet>
         <QuestionNum>1</QuestionNum>
         <answer>
            <![CDATA[ 26]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>2</QuestionNum>
         <answer>
            <![CDATA[ 404]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>3</QuestionNum>
         <answer>
            <![CDATA[ 3.5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>4</QuestionNum>
         <answer>
            <![CDATA[ 11 5]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>5</QuestionNum>
         <answer>
            <![CDATA[ 58 66]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <AnswerSet>
         <QuestionNum>6</QuestionNum>
         <answer>
            <![CDATA[ 35 19]]>
         </answer>
         <Score>0</Score>
      </AnswerSet>
      <TotalScore>0</TotalScore>
   </IndividualResponse>
</root>
</string>

getSurveyListBriefX()

This method returns a list of all surveys in the account with the following information about those surveys.

Input Parameter Data Type Description
Token String The token obtained using the getTokenX method

Output Parameter Data Type Description
corporate_no Decimal Provides the Corporate Number associated with the account
survey_no Decimal This is the unique identifier for the survey
Title String This is the title given to the survey
Anonymity Boolean True if anonymous, otherwise False
semi_anonymous Boolean True if semi-anonymous, otherwise False
Multilingual Boolean True if multilingual, otherwise False
Activate Boolean True if active, otherwise False
Expired Boolean True if expired, otherwise False
Responses Decimal Total number of responses received for the survey
UniqueResponses Decimal Number of responses received for the survey through single-use invites.
PublicResponses Decimal Number of responses received for the survey through multi-use invites.
UniquePartialResponses Decimal Number of partial responses received for the survey through single-use invites.
PublicPartialResponses Decimal Number of partial responses received for the survey through multi-use invites.
start_date DateTime Start date of the survey
distribution_date DateTime Date when the survey was first distributed
last_Response_Update DateTime Date when the last response came in
lastEditDate DateTime Date when the survey was last edited

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strtoken = objClient.getTokenX("John_smith", "p@ssw0rd");
string strData = objClient.getSurveyListBriefX(strtoken);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getTokenX = array(
"username" => "John_smith",
"password" => "p@ssw0rd"
);
$responce_param = $client->getTokenX($request_param_getTokenX);
$token_response = $client->__getLastResponse();
$dom = new DOMDocument();
$dom->loadXML($token_response);
$token = $dom->textContent;

$request_param_getSurveyListBriefX = array(
"token" => $token
);
$responce_param_getSurveyListBriefX= $client-> getSurveyListBriefX($request_param_ getSurveyListBriefX);
$getSurveyListBriefX _output = $client->__getLastResponse();
echo $getSurveyListBriefX _output;

Copied!
Click to copy
                           

curl -i -d "token=pwebro1u4sjll4otgrlj34au" https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyListBriefX

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyListBriefX,
{'token': 'i0kedn4fxlvnoj5agfuqquxi'},
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strtoken As String = objClient.getTokenX(“John_smith”, “p@ssw0rd”)
Dim strData As String =objClient.getSurveyListBriefX(strtoken);

Output
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>

getSurveyListBrief()

This method returns a list of all surveys in the account, including the relevant information listed above. Rather than the token used in the getSurveyListBriefX method, this option uses your username and password as input.

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strData = objClient.getSurveyListBrief("John_smith", "p@ssw0rd");

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getSurveyListBrief= array(
"username" =>"John_smith",
"password" =>"p@ssw0rd”
);
$responce_param_getSurveyListBrief = $client-> getSurveyListBrief($request_param_ getSurveyListBrief);
$getParticipationStatus_output = $client->__getLastResponse();
echo $getSurveyListBrief_output;

Copied!
Click to copy
                           

curl -i -d "username=John_smith&password=p@ssw0rd" https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyListBrief

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyListBrief,
{'username': 'John_smith', 'password': 'p@ssw0rd'},
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strData As String =objClient.getSurveyListBrief("John_smith", "p@ssw0rd");

Output
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="start_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="last_Response_Update" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" msdata:DateTimeMode="Unspecified" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<createdby>94198</createdby>
<anonymity>false</anonymity>
<multilingual>false</multilingual>
<activate>false</activate>
<expired>false</expired>
<responses>0</responses>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
<lastEditDate>2018-01-25T18:00:58</lastEditDate>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>

getSurveyListX()

This method returns a list of all surveys in the account, including the relevant information below. This list is more elaborate than the list acquired through the getSurveyListBrief method.

Input Parameter Data Type Description
Token String The token obtained using the getTokenX method

Output Data Type Description
corporate_no Decimal Provides the Corporate Number associated with the account
survey_no Decimal This is the unique identifier for the survey
Title String This is the title given to the survey
start_date DateTime Start date of the survey
Responses Decimal Total number of responses received for the survey
Activate Boolean True if active, otherwise False
activate_date DateTime Date and time when the survey was activated
Expired Boolean True if expired, otherwise False
expired_date DateTime Date and time of survey expiry
max_distribution Decimal Maximum number of invites that can be sent
ms_date DateTime Date and time of survey creation
distribution_date DateTime Date when the survey was first distributed
distribution_no Decimal Number of invites that have been sent for the survey
Multilingual Boolean True if multilingual, otherwise False
response_limit Decimal Number of invites that have been sent for the survey
Surveytext String Description of the survey
Anonymity Boolean True if survey is anonymous, otherwise False
dt_last_accessed DateTime Date and time when the survey was last accessed either by admin or participant
No_of_reminders_sent Decimal Number of reminders sent for the survey
TimeOutPeriod Integer Number of minutes after which the survey would time out in participations
edit_later Boolean True if survey is anonymous, otherwise False
isSSL Boolean True if SSL enabled in the survey, otherwise False
last_Response_Update DateTime Date when the last response came in
lastEditDate DateTime Date when the survey was last edited
IsThankYou Boolean True if Thank you page is enabled in the survey, otherwise False
IsBarGraph Boolean True if BarGraph is enabled on the Thank you page in the survey, otherwise False
partialResponses Decimal Number of partial responses received for the survey
Createdby Decimal Identifies the user who created the survey
TotalDistributionNo Decimal Total invites (single- and multi-use) sent out for a survey
UniqueResponses Decimal Number of responses received for the survey through single-use invites.
PublicResponses Decimal Number of responses received for the survey through multi-use invites.
UniquePartialResponses Decimal Number of partial responses received for the survey through single-use invites.
PublicPartialResponses Decimal Number of partial responses received for the survey through multi-use invites.

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strtoken = objClient.getTokenX("John_smith", "p@ssw0rd");
string strData = objClient.getSurveyListX(strtoken);

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getTokenX = array(
"username" => "John_smith",
"password" => "p@ssw0rd"
);
$responce_param = $client->getTokenX($request_param_getTokenX);
$token_response = $client->__getLastResponse();
$dom = new DOMDocument();
$dom->loadXML($token_response);
$token = $dom->textContent;

$request_param_getSurveyListX = array(
"token" => $token
);
$responce_param_getSurveyListX= $client-> getSurveyListX($request_param_ getSurveyListBriefX);
$getSurveyListX _output = $client->__getLastResponse();
echo $getSurveyListX_output;

Copied!
Click to copy
                           

curl -i -d "token=pwebro1u4sjll4otgrlj34au" https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyListX

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyListX,
{'token': 'i0kedn4fxlvnoj5agfuqquxi'},
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strtoken As String = objClient.getTokenX(“John_smith”, “p@ssw0rd”)
Dim strData As String =objClient.getSurveyListX(strtoken);

Output
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>

getSurveyList()

This method returns the same data as getSurveyListX but uses your username and password as input rather than a token.

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

SurveyWebService.SurveyWebSoapClient objClient = new SurveyWebService.SurveyWebSoapClient("SurveyWebSoap");
string strData = objClient.getSurveyList("John_smith", "p@ssw0rd");

Copied!
Click to copy

                              

$wsdl = " https://www.sogosurvey.com/_web-service/Webservice.asmx?wsdl";
$client = new SoapClient($wsdl, array('trace'=>1)); // The trace param will show you errors stack
// Token Function should be called when application is started or when Token is expired
// Token Expires when you get XML Output as AuthenticationFail
// web service input params
$request_param_getSurveyList = array(
"username" =>"John_smith",
"password" =>"p@ssw0rd”
);
$responce_param_ getSurveyList = $client-> getSurveyList ($request_param_ getSurveyList);
$ getSurveyList_output = $client->__getLastResponse();
echo $ getSurveyList_output;

Copied!
Click to copy
                           

curl -i -d "username=John_smith&password=p@ssw0rd" https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyList

Copied!
Click to copy

                                 

import urllib
import urllib.request

def fetch_thing(url, params, method):
params = urllib.parse.urlencode(params)
if method=='POST':
f = urllib.request.urlopen(url, params)
else:
f = urllib.request.urlopen(url+'?'+params)
return (f.read(), f.code)

content, response_code = fetch_thing(
https://www.sogosurvey.com/_web-service/Webservice.asmx/getSurveyList,
{'username': 'John_smith', 'password': 'p@ssw0rd'},
'GET'
)
print (content)

1.

Create a Website or Application in Visual Studio.

2.

Add Service Reference in your Project.

3.

Enter https://www.sogosurvey.com/_web-service/Webservice.asmx in Service Reference address.

4.

Name the WebService as SurveyWebService

5.

Use the code below to get data from the WebService.

6.

SurveyWebSoap is the name of Binding used for the Soap Client. Leave Blank if no Binding is used.

Copied!
Click to copy

                              

Dim objClient As SurveyWebService.SurveyWebSoapClient = New SurveyWebService.SurveyWebSoapClient(“SurveyWebSoap”)
Dim strData As String =objClient.getSurveyList("John_smith", "p@ssw0rd");

Output
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00</ms_date>
<distribution_no>0</distribution_no>
<Multilingual>false</Multilingual>
<response_limit>0</response_limit>
<Surveytext>
   This survey attempts to understand a patient’s experience of a Doctor’s office. The main purpose is to gather information to understand how to improve their customer service.
</Surveytext>
<Anonymity>false</Anonymity>
<dt_last_accessed>2018-01-16T16:25:37.733-05:00</dt_last_accessed>
<No_of_reminders_sent>0</No_of_reminders_sent>
<TimeOutPeriod>180</TimeOutPeriod>
<edit_later>false</edit_later>
<isSSL>true</isSSL>
<lastEditDate>2018-01-25T18:00:58-05:00</lastEditDate>
<IsThankYou>true</IsThankYou>
<IsBarGraph>false</IsBarGraph>
<partialResponses>0</partialResponses>
<Createdby>94198</Createdby>
<TotalDistributionNo>0</TotalDistributionNo>
<UniqueResponses>0</UniqueResponses>
<PublicResponses>0</PublicResponses>
<UniquePartialResponses>0</UniquePartialResponses>
<PublicPartialResponses>0</PublicPartialResponses>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
<DataSet xmlns="http://www.sogosurvey.com/_web-service">
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="">
<xs:complexType>
   <xs:choice minOccurs="0" maxOccurs="unbounded">
   <xs:element name="Table">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="corporate_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="survey_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="title" type="xs:string" minOccurs="0"/>
         <xs:element name="start_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Responses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="activate" type="xs:boolean" minOccurs="0"/>
         <xs:element name="activate_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="Expired" type="xs:boolean" minOccurs="0"/>
         <xs:element name="expired_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="max_distribution" type="xs:decimal" minOccurs="0"/>
         <xs:element name="ms_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_date" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="distribution_no" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Multilingual" type="xs:boolean" minOccurs="0"/>
         <xs:element name="response_limit" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Surveytext" type="xs:string" minOccurs="0"/>
         <xs:element name="Anonymity" type="xs:boolean" minOccurs="0"/>
         <xs:element name="dt_last_accessed" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="No_of_reminders_sent" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TimeOutPeriod" type="xs:int" minOccurs="0"/>
         <xs:element name="edit_later" type="xs:boolean" minOccurs="0"/>
         <xs:element name="isSSL" type="xs:boolean" minOccurs="0"/>
         <xs:element name="last_Response_Update" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="lastEditDate" type="xs:dateTime" minOccurs="0"/>
         <xs:element name="IsThankYou" type="xs:boolean" minOccurs="0"/>
         <xs:element name="IsBarGraph" type="xs:boolean" minOccurs="0"/>
         <xs:element name="partialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="Createdby" type="xs:decimal" minOccurs="0"/>
         <xs:element name="TotalDistributionNo" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniqueResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="UniquePartialResponses" type="xs:decimal" minOccurs="0"/>
         <xs:element name="PublicPartialResponses" type="xs:decimal" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   </xs:element>
   </xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<corporate_no>94198</corporate_no>
<survey_no>19</survey_no>
<title>Job Interest Survey</title>
<Responses>0</Responses>
<activate>false</activate>
<Expired>false</Expired>
<max_distribution>0</max_distribution>
<ms_date>2017-10-18T08:43:26.993-04:00