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
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
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
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?
(http://SERVEUR/moodle/course/jumpto.php)
What is the problem?
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
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
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
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
Does the set name you type exist in webwork? The sets should be created in webwork before adding them to moodle.
Jason
Jason
It was the problem. Set wasn't create. Now it's ok.
Thank you very much
Thank you very much