Hi everybody, i have this error message using WebService's and, i've been looking for solution for several days in this forums, but i find nothing at all and don't know how to fix it, so any help will be wellcome. I'm begginer developing with PHP and Moodle but i will try to explain:
I'm testing in LOCAL-SERVER Moodle 2.2.2 with Apache 2.2.14, PHP 5.3.2, MySQL 5.1.62 and using XLMRPC protocol on WebService.
My PHP-script works really fine and quick calling WebServices and inserting users (core_user_create_users), courses (core_course_create_courses) and enrolments (enrol_manual_enrol_users), if they are LESS of 500 users, courses or enrolments. But when I try to insert about 600, moodle web-service answers this error: object(Zend_Http_Client_Exception)#11822 _ _ _ _ _ 'Unable to read response, or response is empty'.
To work with such a number of rows, i 've had to modify the 'timeout' on my Zend_XmlRpc_Client by this way (according to what i read in another forum):
$xmlrpcclient->getHttpClient()->setConfig(array('timeout' => $timeout)) from 10 (seconds) to 300 so it works.
Any idea why it gives that error?
Thanks in advance.
Pau