This is a migrated thread and some comments may be shown as answers.

Webservices and ChangeSets

3 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nigel
Top achievements
Rank 1
Nigel asked on 20 Feb 2009, 01:18 AM
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

 

 

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 20 Feb 2009, 08:56 AM
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.
0
Nigel
Top achievements
Rank 1
answered on 21 Feb 2009, 01:24 AM
Thanks,
Hi do you have any examples/Knowledge bases on this topic?
0
Accepted
PetarP
Telerik team
answered on 23 Feb 2009, 09:47 AM
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.
Tags
General Discussions
Asked by
Nigel
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Nigel
Top achievements
Rank 1
Share this question
or