instructure / lti1_tool_provider_example

A simple LTI Tool Provider Sinatra app
MIT License
33 stars 22 forks source link

Edx integration problem #2

Open ionm opened 10 years ago

ionm commented 10 years ago

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 10 years ago

what values are you returning?

ionm commented 10 years ago

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 10 years ago

Do you have any example XML that does work in edx?

ionm commented 10 years ago

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>