Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getTests webservice returns empty response #30

Open
Amab opened this issue Oct 8, 2023 · 0 comments
Open

getTests webservice returns empty response #30

Amab opened this issue Oct 8, 2023 · 0 comments

Comments

@Amab
Copy link

Amab commented Oct 8, 2023

The getTests service always returns an empty response.

The curse has got the tests data download option enabled:
imagen

getTestConfig call to check if there are tests available in the course:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:swad">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:getTestConfig>
         <!--Optional:-->
         <wsKey>[REDACTED]</wsKey>
         <courseCode>4270</courseCode>
      </urn:getTestConfig>
   </soapenv:Body>
</soapenv:Envelope>

getTestConfig response showing test data is available:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:swad="urn:swad" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header />
   <SOAP-ENV:Body>
      <swad:getTestConfigOutput>
         <pluggable>1</pluggable>
         <numQuestions>55</numQuestions>
         <minQuestions>1</minQuestions>
         <defQuestions>4</defQuestions>
         <maxQuestions>20</maxQuestions>
         <feedback>fullFeedback</feedback>
         <visibility>31</visibility>
      </swad:getTestConfigOutput>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

getTests call:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:swad">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:getTests>
         <!--Optional:-->
         <wsKey>[REDACTED]</wsKey>
         <courseCode>4270</courseCode>
         <beginTime>0</beginTime>
      </urn:getTests>
   </soapenv:Body>
</soapenv:Envelope>

getTests response:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:swad="urn:swad" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header />
   <SOAP-ENV:Body>
      <swad:getTestsOutput>
         <tagsArray />
         <questionsArray />
         <answersArray />
         <questionTagsArray />
      </swad:getTestsOutput>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant