Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

We are going to implement Mobile Application, here 3 level of people are involved to achieve this task.

Level 1: Sitecore Developement
Level 2: IOS
Level 3: Android

My task is Level 1, Sitecore(CMS) with .Net and need to send RESTful service without using Web API, to Level 2 people. So, that the Level 2 people will take care next level configurations.

Here, my question is what are all the possibilities to send service without using API, and which one is best one out of those.
Posted
Updated 21-Sep-15 4:29am
v3
Comments
Sinisa Hajnal 21-Sep-15 10:23am    
I think you need to study a bit more. REST service should work regardless of technology used to access it due to it using standard URI as resource (and details of the implementation should be hidden from the requester).

That is, the one accessing your service should write http://yourservice.wht/categories/category/1
And receive category with ID 1 (variations on this are of course possible) : one could use post and send the data, accept header and content-type could / should be set...

Web API just makes it easier for you as a service developer to make the service, to consumers it should be irrelevant how it was written.

Good luck
Afzaal Ahmad Zeeshan 21-Sep-15 10:27am    
RESTful is not a product of Web API. It is a standard, so you can use it anyways. It doesn't need to be used with (ASP.NET) Web API itself.

1 solution

If you are planning to develop your REST service in .Net then Asp.Net Web API is the best approach considering many features it provides. Alternate is WCF REST, but if you have permissions to leverage WCF then I am sure you should be having permissions to use Asp.Net Web API. So both Asp.Net Web API and WCF REST options are out.

Below Codeproject article demonstartes how you can develop REST Service using simple .Net HttpHandler. I my self used it when Asp.Net Web API wasnt released and I did not had leverage to use WCF REST.

Developing a REST Web Service using C# - A walkthrough

If you want to explore outside .Net then you may explore NodeJs etc.
http://cwbuecheler.com/web/tutorials/2014/restful-web-app-node-express-mongodb/

Update
To create REST service in your Sitecore CMS code, refer below urls.
http://blog.falafel.com/using-sitecore-mvc-rest-services/

http://stackoverflow.com/questions/10747246/creating-a-rest-service-in-sitecore

http://stackoverflow.com/questions/1308226/sitecore-and-asp-net-mvc

And more material here.
 
Share this answer
 
v2
Comments
Naveen.Sanagasetti 21-Sep-15 10:32am    
Hi RasiKazi,

I want to implement the service using sitecore.
RaisKazi 21-Sep-15 10:54am    
Please refer to updated answer.
Naveen.Sanagasetti 21-Sep-15 10:58am    
Hi RasiKazi,

I already go through those all links, but all are using Web API only, we require without using API, and without wrote any code we need to configure it using sitecore content, that is what I'm expecting.
RaisKazi 21-Sep-15 11:18am    
I dont know, what do you meant by "without writting any code", chek with Sitecore if they provide any such feature(REST using just configuration), which I dont think they do.
Naveen.Sanagasetti 22-Sep-15 4:53am    
There is an option to Integrating service using sitecore, but the problem is it's sending information in XML format, but we required in JSON format. Is their any third party integration for the same, that is what I'm expecting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900