Skip to main content
Version: 2.2.2

newQuestionAnswer

This method allows adding:

  • Responses into questions.

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

Java class
Requestweb/wwwroot/ws/java/survey/NewQuestionAnswerRequestType.java
Returnweb/wwwroot/ws/java/survey/NewQuestionAnswerResponseType.java

Request:

ID #RequiredDescription
QuestionXQuestion
ResponseXResponse
ScoreScore (0 to 100) – for non-evaluative question
If it is not entered, it will be considered as 0.
RightCorrect – for evaluative question:
1 - Yes;
2 or empty – No.
CommentsComment:
1 - Yes;
2 or empty – No.
CommentsRequiredComment required:
1 - Yes;
2 or empty – No.
DefaultDefault:
1 - Yes;
2 or empty – No.
AttachmentRequiredRequire an attachment to be added when selecting answer:
1 - Yes;
2 or empty – No.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:survey">
<soapenv:Header/>
<soapenv:Body>
<urn:newQuestionAnswer>
<urn:Question>?</urn:Question>
<urn:Answer>?</urn:Answer>
<urn:Score>?</urn:Score>
<urn:Right>?</urn:Right>
<urn:Comments>?</urn:Comments>
<urn:CommentsRequired>?</urn:CommentsRequired>
<urn:Default>?</urn:Default>
<urn:AttachmentRequired>?</urn:AttachmentRequired>
</urn:newQuestionAnswer>
</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:

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