Click here to Skip to main content
15,887,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new in .net, and I do not have much experience in .net.So anybody can tell me ,how to create a JSON restful web service in ASP.NET C# that connect to MS SQL 2005 Database and retrieve stored procedures values from the database?.

This web service will eventually be used to communicate with iPhone SDK. And results of this web service will be shown in iPhone application.

Any help would be appreciated.

Thanks!
Posted
Comments
RaisKazi 9-Dec-11 7:34am    
Waseem Fastian 9-Dec-11 7:49am    
@RaisKazi, I cannot use .net 3.5 or 4.0.I have to make this webservice in .net 2.0.And .NET 2.0 does not support WCF.
RaisKazi 9-Dec-11 7:52am    
My Answer to your previous question covers this point as well.
Waseem Fastian 9-Dec-11 7:59am    
@RaisKazi, No, it does not
RaisKazi 9-Dec-11 8:28am    
Please refer my below answer. You may not find much difference(compared to earlier) except that "wikipedia" link, because fundamentally facts remains the same. :)

1 solution

My solution to your earlier Question covers this topic.

How to create a JSON restful webservice in ASP.NET C# that connect to MS SQL Database and retrieve stored procedures values from the database?

This solution based on your comments.
Quote:
@RaisKazi, I cannot use .net 3.5 or 4.0.I have to make this webservice in .net 2.0.And .NET 2.0 does not support WCF.

You may refer below link to get idea about REST.

http://en.wikipedia.org/wiki/Representational_state_transfer

To develop REST Service, WCF support is not obligatory, you can develop REST Service even using simple HttpHandler or HttpModule.[Copied from my earlier solution as fact remains the same.]

You may refer below article which very well explains, how to develop REST service using simple HttpHandler.

Developing a REST Web Service using C# - A walkthrough
 
Share this answer
 
Comments
Monjurul Habib 9-Dec-11 15:19pm    
5!
Amir Mahfoozi 13-Dec-11 2:20am    
+5
santuy2k 21-Dec-11 0:57am    
any one help in json topic?
i need json examples and how to create a json file in asp.net, how to use this as
XML...... please help me guys in this topic...

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