iPhone app

Create .NET WCF Restful web service for iOS

Reading Time: < 1 minute

I need to create a .NET web service consumable by iOS device. Did some research and found out WCF Restful service is the way to go. I used the following examples (tutorials) to construct my web service.

0) Basic Resource Service (link here).
This is basically a self hosting web service run in a main program. A good starting point to learn dataContract, webHttp, etc.

1) I need to change from a console app to a web service, and host on IIS, for this refer to
project 1
2(Space Service, a WCF web service app)

2) I need to combine 2 services into one program, and I referred to plural sight podcast “Building RESTfil services with WCF”

The video above mentioned the httputil.js, HTTP POST/PUT utility, which is handy to test “POST” method. Another tool I used to test GET/POST, is “fiddler”.

A Guide to Designing and Building RESTful Web Services with WCF 3.5, also by Aaron Skonnard, Pluralsight

Essentially here we need to design a scheme (end points) for hosting multiple services.

3) Database connection, I used sql client, which is pretty vanilla.

4) Use pretty path instead of port number (routing service, refer to SimpleREST service again)

Also “code project” example

6 replies on “Create .NET WCF Restful web service for iOS”

[…] Saxophone | Zongora Events Stan Lee’s Comikaze: Programming HighlightsKirtan – the Yoga of Music | Soolaba's BlogMesa Boogie Boogies on Guitar Center | The Tone King | TheToneKing.comOur 5/11 show wiith Maryam Zadeh and the Top 11 horn/sax solos of the 80s podcast edit is up The Collected Ramblings of the Trip Overland — Tripping Overland The Contrarian: Less Would Have Been More » Rock Town Hall • Rock Music DiscussionMinibar-Music Create .NET WCF Restful web service for iOS | stlplace […]

Leave a Reply

Your email address will not be published. Required fields are marked *