Anyone have sample code on how to connect to Sitefinity 4.x as a service?
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?
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
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
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
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.