HI ,
I am Novice to XML RPC Moodle integration. I am developing a c# application
Below is the code i am working with
public interface IMoodle : IXmlRpcProxy
{
[XmlRpcMethod("moodle_user_get_users_by_id")]
object[] GetUserById(object[] id);
[XmlRpcMethod("moodle_course_get_courses")]
object[] GetCourses();
//moodle_webservice_get_token
}
----Main Program----------------------
IMoodle moodleProxy;
moodleProxy = XmlRpcProxyGen.Create<IMoodle>();
moodleProxy.Url = "http://localhost/" + "webservice/xmlrpc/server.php?wstoken=" + "wsusertoken";
object[] a = moodleProxy.GetCourses();
----------------------------------------------------------------------------------------------------------------------------------
I am getting "Server returned a fault exception: [404] Unknown error" exception. I am not sure where am i missing. Any help will be commendable.
Thanks
Supriya