Serialization and deserialization with Sitefinity rest services
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?
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. github.com/.../timw255.Sitefinity.RestClient
Regards,
Hi Tim, thanks for that - that's just what I was looking for.
Cheers
James