I need to import a very large number of pages from our existing (non-Sitefinity) site.
I've built a WinForms app that retrieves and parses the existing pages to grab the content that I need. However, I'm at a loss as to how to get that content into Sitefinity.
I spent quite a bit of time today trying to use the ~/Sitefinity/Services/Pages/PagesService.svc, but I can't figure out how to give my WinForms app permission to call the service.
Finally, I decided to forego the web service API. Instead, I created a new web service that, in turn, uses some of the code from http://www.sitefinity.com/40/help/developers-guide/sitefinity-essentials-pages-creating-pages.html
to create a page. However, I'm again running into authorization issues.
I added this method to my web service:
public string WhoAmI()
return "Running as User : " +
which, when called from my WinForms app, returns "Anonymous."
Since this is a one-time import, I'm happy to give the Anonymous user rights to everything on the dev server. However, I'm not sure how to do that.
Better yet, are there any functioning examples available of using the Sitefinity services from a desktop application?