Posts tagged ‘enterprise sdk’

Wednesday 5 April 06

Getting on well with the development of the webservices for the Enterprise databases, and ought to have this about finished later this week. Then next week I can look at seeing how this maps across to the Enterprise SDK – I can use the same database and should to be able to reuse a lot of the code too (esp the parts that make calls to the database to retrieve data).

Another thing we’ve been looking at at is how we’ll do the XML parsing in Moodle using php. Most Moodle installations run on PHP 4 which doesn’t have built in XML functions, whereas PHP 5 does. There are libraries available for PHP 4 to do the XML parsing, but these (I think) would mean rewriting the code if we (and/or Moodle) moved to PHP 5. The alternative (so code didn’t need to be rewritten for different versions of PHP) would be to use regular expressions on the XML string – but that seems like a bit of a kludge to me!

Monday 27 March 06

Eventually figured out what the problem was when I was trying to register the service with axis on the Enterprise minimal deployment example. It turned out that I needed to add ‘.’ to the axis class path so that the current directory was also included in the class path. See the full background on the IMS Enterprise SDK SF forums

I also started a new thread on the IMS Enterprise SDK SF forum regarding being able to ‘get at’ the wsdl for the web services generated, as I was getting error messages when I tried to view the wsdl. The solution appears to be to use the es-client.jar for the communication between the client and server. However for our project we can’t the es-client.jar because the client will be Moodle (written in php). So we’ve got a couple of options (unfortunately Scotts option of using the SOAPless approach won’t work as we need read & write access)….

  1. Try to figure out how to read the output from the webservice in php – I’m guessing this is what Scott means when he says that we could construct the SOAP + XML messages and deal with them.
  2. Create the client in java, then write a wrapper around this to provide a simpler webservice, and we could then let Moodle & LAMS commmunicate with this stripped down version.
  3. Create our own basic webservice (which passed out IMS Enterprise XML, rather than using IMS Enterprise Webservices), but this would mean not using the Enterprise SDK at all

My feeling at the moment is that (1) would take up too much time in this short project, and we wouldn’t get chance to do the grouping stuff that we’re meant to be doing! Option 2 would be a good compromise given the time we have, with option 3 as a fallback option so we could actually deliver something that worked, just not exactly in the way we would have liked.

Need to have a bit of a think about all this and the best way to go :-)

Thursday 23 March 06

I’ve been looking again at getting the minimal deployment of the IMS Enterprise SDK running and looking at the experiences that Carol has been having (see: the MINTED blog and the posting on the SF forum). I did have some problems getting it running and I’m sure it was a classpath issue (it your interested in the exact problem I posted it up to the SF forum). However, I had also asked Carol to email me the whole war file that she had compiled and got running. Once I put her version of the war file in my tomcat deployment directory it ran fine.

I’m now looking at extending this war to make it do something useful, and Scott has provided me with some sample code of how to do this, so I’ll have a look through this this and will post up here how I’m getting along.

We’ve also arranged to spend a morning face-to-face with Scott so that we can go over any problems we are having with him, as I’m sure many of the problems/issues that Carol and I have been having would be very easily solved f2f. I sure that this will be really valuable, and will save us a lot of time.

Wednesday 1 March 06

Yesterday had our first regular telephone conference with Ernie, which all seemed to go well, basically just me and Ernie going through where we’ve each got to so far, and what we each need to do next. We’re still a little stumped about the enterprise SDK, but Ernie hopes to get chance to have a look at this over the next week or so to see if he encounters the same problems I had.

Monday 27 February 06

Spent a little time yesterday looking at the Enterprise SDK and seeing how to get that working. My first step was to try running the very simple example (at http://www.cetis.ac.uk/content2/20040624131946) and I did get this running ok with JRun, I didn’t get it working with JBoss. Altough I had it running on JRun, in that I got the message on screen that there was an axis service available, when I actually tried to view the wsdl (as I’m still unclear as to exactly what the input parameters and outputs are for the service methods), I get an error.

With JBoss, I didn’t actually get an error (or in the logs), but just a blank page in the browser – so it was as if the the page/service was found, but no content generated. I’m not sure if this is to do with the version of Axis that I have running on my JBoss, or something like that?

I also thought I’d have a go at downloading and compiling the demo application on the cetis-es sourceforge site, but I didn’t get that finished, so I’ll give that another go today and I’ve been looking at the BEWT site, as they appear to have it all working.

Friday 24 February 06

Today I’ve also set up a test LAMS server, and installed the LAMS-Moodle module to integrate LAMS sequences into Moodle courses. The LAMS server is on a separate machine to our Moodle server, just to demonstrate these things working on separate machine, and it’s all been pretty straightforward to set up. I’ve noticed a couple of ‘odd’ things though (that I don’t think I’m actually going to worry about too much!), firstly that occasionally error messages appear in Moodle saying something along the lines of ‘warning, no such file or directory… \mod\lams\lib.php’, but it all seems to work fine anyway. Secondly, when I’m trying to add a LAMS sequence to Moodle, it doesn’t always seem to show all the sequences I’ve made in LAMS – this could be because I’ve put them in the ‘wrong’ place on LAMS though.

My plans for next week are to get to grips with the IMS Enterprise SDK and try to create a sample student records system to integrate with, so then we’ll have a web service for our Moodle Grouping Module and Grouping UI to call. I am going to make this very lightweight, as it will simply be a demo.

Friday 24 February 06

Been chatting to Carol at Sussex Uni about their Minted project today, really just to catch up to let them know what we’re up to in our project, and for her to let us know what she’s doing – to check we’re not duplicating effort. At the moment it seems like we can both just get on with what we were already doing, so we’ll still continue creating the Moodle Grouping Module in the same way and testing out the IMS Enterprise SDK etc, and they’ll be trying out the IMS Enrolment module for Moodle and linking the IMS Enterprise SDK up to their student record system.

It would be nice if we could have our Moodle Grouping Module ready in time for Minted to try out too, but this all depends on how quickly we can get this up and running. Fortunately though, we don’t need to depend on each other for our projects to be successful and still deliver what we promised to JISC!

We’re going to be keeping in touch with how each of our respective projects develops anyway, and once we’ve actually developed something worth showing (!), we’ll get together face-to-face.

Wednesday 22 February 06

Something else we’ve been trying to get our heads around is exactly what the IMS Enterprise SDk actually does. My impression (and I now think I was wrong!!) was that it was a self contained java/web services application that you would simply put on you J2EE server and then you could call various web services to get information or put information in and behind this there was a database (or similar!!) storing all the data.

We’ve now&nb;looked a bit closer, and it seems that it’s essentially a wrapper that can help you to expose student/group information via webservices using IMS Enterprise/IMS Enterprise Web Services (the nomenclature is confusing me too!!). So it now appears that in order to demonstrate our grouping toolkit, we’ll also need to build a web service, but just using the IMS Enterprise SDK to help us. I’ll chase this up with the Minted group, as I’m not sure if they had the same (mis!) understanding as I did, if so, they’ll need to build a service too, and it would make sense to collaborate on this.

Wednesday 22 February 06

Juliette has been spending some time looking at the Moodle forums regarding the use of groups, adn this is the email she has sent around (I did ask her if it was ok before I posted this!!):

"I’m gradually ploughing through the Moodle forum on groups to get a feel for some of the problems that people seem to be having. One thing that’s worth being aware of is that the way Moodle handles groups has some changes version 1.6 (apparently available on the Moodle CVS).

As you may know, the way Moodle essentially works at the moment is that you can only define one set of groups for a course. When you add a tool to a course, you can tell it to use this set of groups. So for instance if you have two ‘groupable’ activities in a course you have to use the same groups for each activity. Most of the request on the forum arise from a need for multiple sets of groups (I’ll call a set of groups a group set for the time being – need a better name!). So allowing this  would be an obvious improvement. When you add a tool you’d then tell it which group set to use. This would mean that you could use different groups for two different activities in the course.

There are also some possibly interesting things the user interface might be able to do if we have multiple group sets. For instance it could automatically create a new group set with minimum overlap with existing specified group sets. So for instance you could get it to put everybody into pairs, then say to the user interface ‘create me a new set of pairs with minimum overlap with the other set of pairs’, so that nobody is in a pair with the same person as before.

Another option could be that it can automatically create a new group set where groups are subsets of groups in an existing specified group set. This would mean that you could divide your students into three groups say, have a forum for each of these groups and then put them into pairs for another activity but be sure that the both members of a pair come from the same group of the original three.

As well as adapting tools to be able to choose a group set for the tool, ideally you’d want to be able to assign the force option (split all groupable activities into groups) to no more than one of the group sets.

All of this does however make the issue of what the ‘flattening function’ should be quite interesting though, as we’ll have to assume that some tools might be ready to use IMS groups before others. Maybe we could have some way of marking one of the group sets as the ‘primary’ group set that tools still using the conventional Moodles groups would see? There are general issues about the flattening function of course though because IMS doesn’t have any concept of courses. It’d be interesting to see exactly what the existing IMS Enterprise Moodle module that the MINTED folk mentioned does for this. Another thing I haven’t checked yet is whether it’s possible in Moodle to create separate ‘sections’ for a course like you can in some VLEs. If it can’t then separate sections, a pretty common requirement, are just groups within Moodle. As well as flattening, we also have the reverse problem – if somebody makes a change to the conventional groups in Moodle, how precisely do we reflect this in our IMS groups database? I think that way is much more straightforward, but we still need to make sure that we do it.

The user interface for managing group sets will also need substantial thought to make it easy enough for most people to use, but I think it should be possible. One thing that came up on the forums is that people want to be able to see a list of all the groups for their course on one page so we must make sure our user interface can do that too. "