SurveyAnswerSvc


Click here for a complete list of operations.

Insert

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 /singleview/common/surveyanswersvc.asmx HTTP/1.1
Host: simplicitycrm.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://services.simplicitycrm.com/dataintegration/surveyanswer/Insert"

<?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>
    <Insert xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <Token>string</Token>
      <SurveyAnswer>
        <RSN>string</RSN>
        <DisplayValue>string</DisplayValue>
        <Survey_RSN>string</Survey_RSN>
        <Parent_RSN>string</Parent_RSN>
        <SurveyInstance_RSN>string</SurveyInstance_RSN>
        <OnlineForm_RSN>string</OnlineForm_RSN>
        <Date>dateTime</Date>
        <KeyCode>string</KeyCode>
        <LabelCode>string</LabelCode>
        <Page_Index>int</Page_Index>
        <Survey_Index>int</Survey_Index>
        <SurveyInstance_DedupeKey>string</SurveyInstance_DedupeKey>
        <CampaignList_RSN>string</CampaignList_RSN>
        <LabelCode_RSN>string</LabelCode_RSN>
        <Answers>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
        </Answers>
      </SurveyAnswer>
    </Insert>
  </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>
    <InsertResponse xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <InsertResult>
        <ErrorCode>int</ErrorCode>
        <RSN>string</RSN>
        <SurveyInstance_RSN>string</SurveyInstance_RSN>
        <LogAgainst_RSN>string</LogAgainst_RSN>
        <Survey_Index>int</Survey_Index>
        <Page_Index>int</Page_Index>
      </InsertResult>
    </InsertResponse>
  </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 /singleview/common/surveyanswersvc.asmx HTTP/1.1
Host: simplicitycrm.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>
    <Insert xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <Token>string</Token>
      <SurveyAnswer>
        <RSN>string</RSN>
        <DisplayValue>string</DisplayValue>
        <Survey_RSN>string</Survey_RSN>
        <Parent_RSN>string</Parent_RSN>
        <SurveyInstance_RSN>string</SurveyInstance_RSN>
        <OnlineForm_RSN>string</OnlineForm_RSN>
        <Date>dateTime</Date>
        <KeyCode>string</KeyCode>
        <LabelCode>string</LabelCode>
        <Page_Index>int</Page_Index>
        <Survey_Index>int</Survey_Index>
        <SurveyInstance_DedupeKey>string</SurveyInstance_DedupeKey>
        <CampaignList_RSN>string</CampaignList_RSN>
        <LabelCode_RSN>string</LabelCode_RSN>
        <Answers>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
          <SurveyAnswerField>
            <FieldName>string</FieldName>
            <Value />
          </SurveyAnswerField>
        </Answers>
      </SurveyAnswer>
    </Insert>
  </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>
    <InsertResponse xmlns="http://services.simplicitycrm.com/dataintegration/surveyanswer">
      <InsertResult>
        <ErrorCode>int</ErrorCode>
        <RSN>string</RSN>
        <SurveyInstance_RSN>string</SurveyInstance_RSN>
        <LogAgainst_RSN>string</LogAgainst_RSN>
        <Survey_Index>int</Survey_Index>
        <Page_Index>int</Page_Index>
      </InsertResult>
    </InsertResponse>
  </soap12:Body>
</soap12:Envelope>

JSON

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

POST /singleview/api/common/surveyanswersvc/Insert HTTP/1.1
Host: simplicitycrm.com
Content-Type: application/json; charset=utf-8
Content-Length: length
Authorization: Token string

{
  "SurveyAnswer":{
    "RSN":string,
    "DisplayValue":string,
    "Survey_RSN":string,
    "Parent_RSN":string,
    "SurveyInstance_RSN":string,
    "OnlineForm_RSN":string,
    "Date":dateTime,
    "KeyCode":string,
    "LabelCode":string,
    "Page_Index":int,
    "Survey_Index":int,
    "SurveyInstance_DedupeKey":string,
    "CampaignList_RSN":string,
    "LabelCode_RSN":string,
    "Answers":[
      {
        "FieldName":string,
      },
      {
        "FieldName":string,
      },
    ],
  },
},
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "ErrorCode":int,
  "RSN":string,
  "SurveyInstance_RSN":string,
  "LogAgainst_RSN":string,
  "Survey_Index":int,
  "Page_Index":int,
},