+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Serialization and deserialization with Sitefinity rest services

Serialization and deserialization with Sitefinity rest services

3 posts, 1 answered
  1. James
    James avatar
    0 posts
    Registered:
    15 Sep 2016
    03 Nov
    Link to this post

    I'm trying to use the Sitefinity restful services in an external application to retrieve news items from one instance of Sitefinity (running Sitefinity 5.4) and save them into another Sitefinity instance (running Sitefinity 9.1). The reason I'm doing it this way is that I don't want to do a full migration from one site to another but just certain items.

    It seems that the services aren't using simple data transfer objects for their contract but are using the heavy-weight model classes for NewsItem etc. Which means that when I try to serialize or deserialize the objects for the service to consume, Sitefinity throws exceptions since it expects the full Sitefinity configuration in order to use these classes. Is there a way I can use the services from an external application without basically creating a full instance of Sitefinity just so that I can call a service in another instance?

  2. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    25 Nov in reply to James
    Link to this post

    James,

    I'm a bit late to the discussion but, I ran across this exact same thing a while back. Here's something that may be useful to you. https://github.com/timw255/timw255.Sitefinity.RestClient

    Regards,

    Answered
  3. James
    James avatar
    0 posts
    Registered:
    15 Sep 2016
    27 Nov in reply to Tim
    Link to this post

    Hi Tim, thanks for that - that's just what I was looking for.

     

    Cheers

    James

3 posts, 1 answered