Webservices and ChangeSets

Thread is closed for posting
4 posts, 1 answers
  1. Nigel
    Nigel avatar
    10 posts
    Member since:
    Jul 2008

    Posted 19 Feb 2009 Link to this post

    Hi I am a little confused, Looking at the examples (and the auto generated asmx file) the webservice returns ChangeSet objects, whihc looks great as just sending it back will make the changes that occured at the top tier of the solution. However I can not work how to use this class, and the API is not very descriptive.

    The web method simply returns a changeset

    [

    WebMethod
    public Telerik.OpenAccess.ObjectContainer.ChangeSet GetDocumentTree()
    {

     

    try

     

    {return DBManager.GetObjects("DocumentTreeItem", true).GetContent();
    }

     

     

     

     

     

     

    catch (Exception exc)

     

    {

     

     

     

    string msg = exc.Message;

     

     

     

     

    throw;

     

    }
     Were GetObjects returns an ObjectContainer.

    But how do you detail with the changeset at the receiver? I am using MPF for the project that I am testing to see if OpenAccess will suit for this application.
    I would like to load this tree and bind it to a RadTree for example.

    Thanks in advanced

     

     

  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 20 Feb 2009 Link to this post

    Hi Nigel,
    the ChangeSet is used to pass information in the services because its serializable. You can use it in your receiver by creating a container and using the apply property on it to apply the returned ChangeSet from the service.

    Sincerely yours,
    PetarP
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Nigel
    Nigel avatar
    10 posts
    Member since:
    Jul 2008

    Posted 20 Feb 2009 Link to this post

    Thanks,
    Hi do you have any examples/Knowledge bases on this topic?
  4. Answer
    PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 23 Feb 2009 Link to this post

    Hello Nigel,
    here is an example of how to use web services and object container.

    Best wishes,
    PetarP
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top