Registration Service

Add a service reference to your project as shown below. Visual Studio 2008 or higher is required. If you are using Visual Studio 2005, the Visual Studio 2005 extensions for .NET Framework 3.0 are required.

Registration Service reference in VS

Configuration entries will be created by Visual Studio. Update the config entries as detailed in LMS Framework Installation Packages.

Write the code to invoke this service in your project.

// Use the Authentication API to get the token

   string token = "12233423abcabdf12321323abd121312321321";

 

// Initialize InMsg          

RegSvc.GetRegistrationActionsInMsg inMsg = new

RegSvc.GetRegistrationActionsInMsg();

      inMsg.CourseSectionIds = new int[] {1, 2, 3};

      inMsg.ModeOfExtract = RegSvc.RegistrationActionsExtractMode.ChangesOnly;

      inMsg.ApplicationFilter =

RegSvc.RegistrationActionsApplicationFilter.LmsOnly;

 

      // Initialize Request

      RegSvc.GetRegistrationActionsRequest request = new

RegSvc.GetRegistrationActionsRequest();

      request.InMessages = new RegSvc.GetRegistrationActionsInMsg[1] { inMsg };

      request.TokenId = token;

      // Initialize and invoke the Service Client

      RegSvc.GetRegistrationActionsServiceClient getRegActionsClient = new

RegSvc.GetRegistrationActionsServiceClient();

RegSvc.GetRegistrationActionsResponse response =

getRegActionsClient.GetRegistrationActions(request);