newQuestion
This method allows adding:
- Questions.
To insert each of these items, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web/wwwroot/ws/java/survey/NewQuestionRequestType.java |
| Return | web/wwwroot/ws/java/survey/NewQuestionResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| Question | X | Question |
| QuestionType | X | Question type: 1 – Single selection - Vertical; 2 – Single selection - Horizontal; 3 – Single selection - Vertical matrix; 4 – Single selection - Horizontal matrix; 5 – Single selection - In list; 6 – Single selection - NPS; 7 – Multiple selection - Vertical; 8 – Multiple selection - Horizontal; 9 – Multiple selection - Vertical matrix; 10 – Multiple selection - Horizontal matrix; 11 – Long description; 12 – Short description; 13 – Date/time; 14 – Date; 15 – Time; 16 – Classification. |
| QuestionGroupID | Question group ID # | |
| DegreeOfDifficultyID | Degree of difficulty ID # | |
| Help | Help text | |
| Matrix | Matrix questions (separated by "|") | |
| Required | Required: 1 - Yes; 2 or empty – No. | |
| Evaluative | Evaluative question [test mode]: 1 – Yes; 2 or empty – No. | |
| Attachment | Allow attachment when answering question: 1 - Yes; 2 or empty – No. | |
| AttachmentRequired | Require an attachment to be added when answering question: 1 - Yes; 2 or empty – No. | |
| MultCheckMatrix | Allow selecting the same response for all questions: 1 - Yes; 2 or empty – No. | |
| Weight | Weight (1 to 999) If it is not entered, it will be considered as 1. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:survey">
<soapenv:Header/>
<soapenv:Body>
<urn:newQuestion>
<urn:Question>?</urn:Question>
<urn:QuestionType>?</urn:QuestionType>
<urn:QuestionGroupID>?</urn:QuestionGroupID>
<urn:DegreeOfDifficultyID>?</urn:DegreeOfDifficultyID>
<urn:Help>?</urn:Help>
<urn:Matrix>?</urn:Matrix>
<urn:Required>?</urn:Required>
<urn:Evaluative>?</urn:Evaluative>
<urn:Attachment>?</urn:Attachment>
<urn:AttachmentRequired>?</urn:AttachmentRequired>
<urn:MultCheckMatrix>?</urn:MultCheckMatrix>
<urn:Weight>?</urn:Weight>
</urn:newQuestion>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| Status | Returns the status of the execution. SUCCESS: SUCCESS FAILURE: FAILURE |
| Code | Returns the code of the execution: SUCCESS: 1 FAILURE: Error code |
| Detail | SUCCESS: Method executed successfully FAILURE: Description of the error that was found |
| RecordKey | Code of the created record |
Return structure:
<newQuestionResponse xmlns="urn:survey">
<Status>?</Status>
<Code>?</Code>
<Detail>?</Detail>
<RecordKey>?</RecordKey>
</newQuestionResponse>