WeBWorK Problems

Setup Moodle Webwork

Setup Moodle Webwork

by Philippe Ben -
Number of replies: 6
Hi,
I want to interconnect Moodle and Webwork. I use the assignment module v5.
When I setup files, I need to write the "secretcode" (rpc key). It is "defined in the WeBWorK installation".
When is it defined??? I don't remember. Is it possible to change it?
Thank you

In reply to Philippe Ben

Re: Setup Moodle Webwork

by Jason Aubrey -
Phillipe,

This is defined in webwork2/lib/WebworkSOAP.pm where it it defined as

$WebworkSOAP::SeedCE{soap_authen_key} = 123456789123456789;

It should certainly be changed to something more random for production use.

Jason


In reply to Jason Aubrey

Re: Setup Moodle Webwork

by Philippe Ben -
I have the same password in moodle for the link with Webwork and in the SOAP . But when I add a block, Webwork Problem Set, I have a http 500 error
(http://SERVEUR/moodle/course/jumpto.php)
What is the problem?

In reply to Philippe Ben

Re: Setup Moodle Webwork

by Jason Aubrey -
Are webwork and moodle on different servers?

If so, the problem may be that you have $webwork_url set to 'localhost'. This generates webservice urls like http://localhost/webwork2_rpc and http://localhost/WebworkSOAP in the wsdl file at $webwork_url/webwork2_wsdl.

But then moodle sends its soap queries to localhost/WebworkSOAP instead of the webwork server.

So, if $webwork_url is set to 'localhost' in the webwork.apache2-config, then change it to the public url, restart and try it again.

Jason
In reply to Jason Aubrey

Re: Setup Moodle Webwork

by Philippe Ben -
They are on the same server.
Now I can access to the "Adding Webwork problem Set"
I type a name but when I save, I have a new error message:
Exception: argument 1must contain a set_id at /opt/webwork/webwork2/lib/WebworkSOAP.pm line 698
What is the problem now??????
Thank you again
In reply to Philippe Ben

Re: Setup Moodle Webwork

by Jason Aubrey -
Does the set name you type exist in webwork? The sets should be created in webwork before adding them to moodle.

Jason