Webservices with asp.net C# and Visual Studio 2008

Webservices with asp.net C# and Visual Studio 2008

by Josh Smith -
Number of replies: 1
I'm trying to work on a project for a client of ours using the moodle webservices and a .net 2.0 web application in Visual Studio 2008. I've successfully added http://domain.com/ws/service.php?type=soap&wsdl as a web reference to my project. I'm able to view the methods for MoodleWS class and some of the other classes from the web service.

However, my problem is that some of the objects are missing. There is no userRecord, userDatum, courseRecord, courseDatum, gradeRecord, gradeStatsRecord, studentRecord. I do have (not listing them all) courseData, userData, userRecords, etc.

I finally figured this out after looking at the .wsdl file and seeing those objects that I'm missing. I'm attaching a screen shot of VS hoping that might help.

Our client told me he is using version 1.8.4.
Attachment screenshot.gif
Average of ratings: -
In reply to Josh Smith

Re: Webservices with asp.net C# and Visual Studio 2008

by Catalin Maican -
Hi,

take a look at the Patrick Pollet's version of Web Services at http://cipcnet.insa-lyon.fr/Members/ppollet/public/moodlews/. Currently there is a fully functional 1.5.9 version, but he promised some time ago a 1.6 version with some fixes.

Also, that a look at http://www.codeplex.com/Moodle2003WP - SharePoint Web Parts for Moodle. Inside the release you can find some code needed to access the Moodle database directly - but be worry of the changes that might occur in this database on upgrade...


Catalin