Skip to main content
Version: 2.2.3

newQuestion

This method allows adding:

  • Questions.

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb/wwwroot/ws/java/survey/NewQuestionRequestType.java
Returnweb/wwwroot/ws/java/survey/NewQuestionResponseType.java

Request:

ID #RequiredDescription
QuestionXQuestion
QuestionTypeXQuestion 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.
QuestionGroupIDQuestion group ID #
DegreeOfDifficultyIDDegree of difficulty ID #
HelpHelp text
MatrixMatrix questions (separated by "|")
RequiredRequired:
1 - Yes;
2 or empty – No.
EvaluativeEvaluative question [test mode]:
1 – Yes;
2 or empty – No.
AttachmentAllow attachment when answering question:
1 - Yes;
2 or empty – No.
AttachmentRequiredRequire an attachment to be added when answering question:
1 - Yes;
2 or empty – No.
MultCheckMatrixAllow selecting the same response for all questions:
1 - Yes;
2 or empty – No.
WeightWeight (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
StatusReturns the status of the execution.
SUCCESS: SUCCESS
FAILURE: FAILURE
CodeReturns the code of the execution:
SUCCESS: 1
FAILURE: Error code
DetailSUCCESS: Method executed successfully
FAILURE: Description of the error that was found
RecordKeyCode of the created record

Return structure:

   <newQuestionResponse xmlns="urn:survey">
<Status>?</Status>
<Code>?</Code>
<Detail>?</Detail>
<RecordKey>?</RecordKey>
</newQuestionResponse>