survey


Click here for a complete list of operations.

returnSurveyResponseData

This method returns the response to a survey, including the questions, mapping and answer along with customer contact info.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /survey.asmx HTTP/1.1
Host: api.peoplevine.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.peoplevine.com/survey.asmx/returnSurveyResponseData"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <returnSurveyResponseData xmlns="https://api.peoplevine.com/survey.asmx">
      <auth>
        <api_username>string</api_username>
        <api_password>string</api_password>
        <api_key>string</api_key>
        <company_no>double</company_no>
        <username>string</username>
        <password>string</password>
        <referenceTypes>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
        </referenceTypes>
        <timezone_id>string</timezone_id>
        <locale>
          <currency>string</currency>
          <language>string</language>
          <country>string</country>
        </locale>
        <business_no>double</business_no>
        <customer_no>double</customer_no>
        <auth_method>string</auth_method>
        <timezone_offset>double</timezone_offset>
        <auth_type>string</auth_type>
        <system_name>string</system_name>
        <system_company_no>double</system_company_no>
        <ip_address>string</ip_address>
        <session_id>string</session_id>
        <device_type>string</device_type>
        <referrer>string</referrer>
        <user_info>string</user_info>
      </auth>
      <fields>
        <key>string</key>
        <hideFiles>boolean</hideFiles>
        <hideEncrypted>boolean</hideEncrypted>
        <includePreviousResponses>boolean</includePreviousResponses>
        <reference_type_alt>string</reference_type_alt>
        <reference_no_alt>double</reference_no_alt>
        <reference_type>string</reference_type>
        <reference_no>double</reference_no>
        <sortby>string</sortby>
        <from_date>dateTime</from_date>
        <to_date>dateTime</to_date>
        <response_data>string</response_data>
        <response_statuses>
          <string>string</string>
          <string>string</string>
        </response_statuses>
        <response_id>string</response_id>
        <business_no>double</business_no>
        <submitted_customer_no>double</submitted_customer_no>
        <customer_no>double</customer_no>
        <survey_group_no>double</survey_group_no>
        <user_no>int</user_no>
        <survey_no>int</survey_no>
        <survey_response_no>double</survey_response_no>
        <company_no>int</company_no>
      </fields>
    </returnSurveyResponseData>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <returnSurveyResponseDataResponse xmlns="https://api.peoplevine.com/survey.asmx">
      <returnSurveyResponseDataResult />
    </returnSurveyResponseDataResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /survey.asmx HTTP/1.1
Host: api.peoplevine.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <returnSurveyResponseData xmlns="https://api.peoplevine.com/survey.asmx">
      <auth>
        <api_username>string</api_username>
        <api_password>string</api_password>
        <api_key>string</api_key>
        <company_no>double</company_no>
        <username>string</username>
        <password>string</password>
        <referenceTypes>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
          <referenceType>
            <reference_type>string</reference_type>
            <reference_no>double</reference_no>
          </referenceType>
        </referenceTypes>
        <timezone_id>string</timezone_id>
        <locale>
          <currency>string</currency>
          <language>string</language>
          <country>string</country>
        </locale>
        <business_no>double</business_no>
        <customer_no>double</customer_no>
        <auth_method>string</auth_method>
        <timezone_offset>double</timezone_offset>
        <auth_type>string</auth_type>
        <system_name>string</system_name>
        <system_company_no>double</system_company_no>
        <ip_address>string</ip_address>
        <session_id>string</session_id>
        <device_type>string</device_type>
        <referrer>string</referrer>
        <user_info>string</user_info>
      </auth>
      <fields>
        <key>string</key>
        <hideFiles>boolean</hideFiles>
        <hideEncrypted>boolean</hideEncrypted>
        <includePreviousResponses>boolean</includePreviousResponses>
        <reference_type_alt>string</reference_type_alt>
        <reference_no_alt>double</reference_no_alt>
        <reference_type>string</reference_type>
        <reference_no>double</reference_no>
        <sortby>string</sortby>
        <from_date>dateTime</from_date>
        <to_date>dateTime</to_date>
        <response_data>string</response_data>
        <response_statuses>
          <string>string</string>
          <string>string</string>
        </response_statuses>
        <response_id>string</response_id>
        <business_no>double</business_no>
        <submitted_customer_no>double</submitted_customer_no>
        <customer_no>double</customer_no>
        <survey_group_no>double</survey_group_no>
        <user_no>int</user_no>
        <survey_no>int</survey_no>
        <survey_response_no>double</survey_response_no>
        <company_no>int</company_no>
      </fields>
    </returnSurveyResponseData>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <returnSurveyResponseDataResponse xmlns="https://api.peoplevine.com/survey.asmx">
      <returnSurveyResponseDataResult />
    </returnSurveyResponseDataResponse>
  </soap12:Body>
</soap12:Envelope>