Custom Methods on Web Service

2 posts, 0 answers
  1. William
    William avatar
    5 posts
    Member since:
    Jul 2012

    Posted 15 Sep 2012 Link to this post

    I am currently using RadScheduler with webservice bindings.

    I need to perform some processing on an appointment and its resources before saving it, but I need to do this server side. I was hoping someone could give me some guidance on how to go about this. My current thought it to add my own method to the webservice and call it manually. But I'm unsure how I would call this from the client and post along the appointment data? This must already happen somewhere for the webservice calls to GetAppointments, InsertAppointments etc so I was hoping I could use similar code.

    For example, if I was to add the following method to my webservice, how could I call this from the client side javascript?

    public bool DoServerSideStuff(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
    return MyClass.DoSomething(schedulerInfo, appointmentData)

  2. Plamen
    Plamen avatar
    3080 posts

    Posted 19 Sep 2012 Link to this post

    Hi William,

    You can achieve such custom functionality in the provider as it is done in the attached project by sending additional information to the Web Service.

    Hope this will be helpful.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top