Edx integration problem
Opened this issue · 4 comments
ionm commented
Hi,
I am trying to use this example with edx but when I submit the grade I get this error: "Your score was not recorded: Request body XML parsing error: list index out of range". I've tried to compare instructure/ims-lti to the edx specifications but I couldn't find anything.
Would you have any advices?
wbhumphrey commented
what values are you returning?
ionm commented
I just tried out the example without making any changes. I've introduced 0.5 or 1.
The lti_tool_provider_example seems to work fine with the lti_tool_consumer_example.
wbhumphrey commented
Do you have any example XML that does work in edx?
ionm commented
I haven't tried this out yet, but from the edx specifications it should look like this:
Example of request body from LTI provider::
<?xml version = "1.0" encoding = "UTF-8"?>
<imsx_POXEnvelopeRequest xmlns = "some_link (may be not required)">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>528243ba5241b</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>feb-123-456-2929::28883</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en-us</language>
<textString>0.4</textString>
</resultScore>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest>