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 | |
---|---|
Request | web/wwwroot/ws/java/survey/NewQuestionAnswerRequestType.java |
Return | web/wwwroot/ws/java/survey/NewQuestionAnswerResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
Question | X | Question |
Response | X | Response |
Score | Score (0 to 100) – for non-evaluative question If it is not entered, it will be considered as 0. | |
Right | Correct – for evaluative question: 1 - Yes; 2 or empty – No. | |
Comments | Comment: 1 - Yes; 2 or empty – No. | |
CommentsRequired | Comment required: 1 - Yes; 2 or empty – No. | |
Default | Default: 1 - Yes; 2 or empty – No. | |
AttachmentRequired | Require 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 |
---|---|
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:
<newQuestionAnswerResponse xmlns="urn:survey">
<Status>?</Status>
<Code>?</Code>
<Detail>?</Detail>
<RecordKey>?</RecordKey>
</newQuestionAnswerResponse>