I wanted to use this module to integrate a drupal 6 website with an chamilo 1.8.8.2 installation. But I had many problems; blocks didn't work at all, code seemed to exist of several independent ways in doing things.
Finally decided to try yo clean up the code a little bit, and writing the webservices in a way they all work in the same manner.
I finally succeeded in having all these blocks working (thanks to all developers).
I post herewith two files:
- webservices.tar.gz = all files at teh chamilo side (main/webservices);
- chamilo.tar.gz = all files at drupal side (the chamilo integration module);

I also added a webservice to purify and create a unique name (because drupal userames and chamilo usernames can not always just be duplicated, as chamilo usernames are less free). I used the (already existing) table chamilo_user in the drupal database, to hold the link between drupal username and chamilo username.
I did not use the api key per user as I did not understand very well the use of it. Is it meant to make it possible for users to use these webservices themselves? Why then?

You need the soapclient module for this to work, and you need to use nuSOAP (configure the soapclent that way).
Hope it might help someone.

CommentFileSizeAuthor
webservices.tar_.gz32.83 KBmarcdecaluwe
chamilo.tar_.gz12.35 KBmarcdecaluwe
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ywarnier’s picture

Hi Mark,

Sorry for the late reaction and thanks for your patch (don't know why I didn't receive an e-mail from Drupal directly to tell me you were reporting this).

I will review your patch later today. We are not in the conditions to patch the services on the Chamilo side in-place if they imply non-backwards-compatible changes (several companies and universities use them in production) so if there are any changes in method calls, we will have to use them as a separate version (or in a separate directory).

It's strange you didn't get it to work though, as I mounted an install (from dev version of the module) working with 1.8.8.2 in July.

marcdecaluwe’s picture

I used the version
6.x-1.x-dev tar.gz (11.88 KB) | zip (13.37 KB) 2011-Feb-25 Notes
which didn't work here.
Later code with webservices was also much cleaner then older (the dokeos-names) existing webservices.

ywarnier’s picture

Hi Marc,
We didn't put your code in 1.8.8.4 because there were too many changes and we have a series of users who depend on the previous version of the webservices to make critical systems work. As such, I think you probably opened a new concept in that we might have to have version directories for the webservices (or maintain them as a separate package), otherwise we might break people's procedures withut knowing it (we don't know how they depend on our webservices).

This being said, you should have worked directly on the development version from Git, as the packaged one is already quite old.
Do you think you might be interested in co-maintaining this Drupal module? (like publishing new versions and that kind of stuff :-))

marcdecaluwe’s picture

Hi Yves,

And where can I find this development version?
And yes, I can try to add something to this Druapl add-on for Chamilo. In the version we now use here I added something for the integration of users (which I didn't put in the version I sent to you, as it is too specific). I could try to make this a bit more generic, but then I should first think about it more. And suggestions from other schools/institutons/... would be a valuable input then of course.

Marc

ywarnier’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

The last release of the Drupal-Chamilo module (see homepage) should enable the SSO and other features of the module with Chamilo 1.9.8.3 (to be released shortly) and Drupal 7. Check the latest version of Chamilo LMS, branch 1.9.x, to get it early.
We don't have resources to work on a patch for Drupal 6. Hopefully, this will be ok for you. I'm closing this issue. Feel free to re-open if you feel like this is not a satisfying solution (but it's unlikely it will be attended).