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

Forums / Developing with Sitefinity / Anyone have sample code on how to connect to Sitefinity 4.x as a service?

Anyone have sample code on how to connect to Sitefinity 4.x as a service?

5 posts, 0 answered
  1. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    12 Oct 2011
    Link to this post
    I'm interested in using Sitefinity 4.x (have 4.2 SP1 now) for our main website and as our general publishing platform, however, I would like to be able to retrieve some Sitefinity data from a client for mobile phones using WCF. Is anyone else doing this yet? Are there any blog articles or sample code on doing this successfully?

    - is it a matter of just coding up my client app and pointing to the right Sitefinity WCF service? (does the client need to be authorized?)

    - Or do I have to extend Sitefinity in some way to make it possible first?
  2. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    12 Oct 2011
    Link to this post
    Here is the Dev Guide link on the topic for those who haven't seen it:
    http://www.sitefinity.com/40/help/developers-guide/deep-dive-client-side-programming-implementing-your-own-restful-wcf-service-creating-a-sitefinity-wcf-service.html

    Before I head too far down that road, I was mainly wondering if anyone had worked with it yet and if there were any gotchas or tips.

    Dan
  3. John
    John avatar
    97 posts
    Registered:
    11 Jan 2011
    17 Oct 2011
    Link to this post

    Hi Dan

    I don’t know what you are trying to do but I wrote a straight forward web servcie, placed it in SF root folder and added all the methods I needed into it. Works fine for what I need.

    Regards

  4. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    01 Nov 2011
    Link to this post
    Here is the best example yet on how to use Sitefinity's WCF services from a non-Sitefinity client complete with Source Code:

    http://www.sitefinity.com/blogs/svetlayankova/posts/11-11-01/getting_started_with_restful_services_in_sitefinity.aspx
  5. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    02 Nov 2011
    Link to this post
    Hi guys,

     Indeed, this is a very good blog post. What I can add here is one more example of logging in and consuming a GetAllUsers service from another application. 
    If you have any further questions, please don't hesitate to get back to me.

    Greetings,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered