Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: Using enrol_manual_enrol_users via XML-RPC.NET

$
0
0
by Supriya Seetharam.  

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


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>