Home | About | All Things STL | Dev | Investing | Links | Site Search | shanzi @sina | uudaddy | Login | Register

Ads

RSS Feed for This PostCurrent Article

Create .NET WCF Restful web service for iOS

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
and
2(Space Service, a WCF web service app)

2) I need to combine 2 services into one program, and I referred to endPoint.tv 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

http://www.codeproject.com/Articles/105273/Create-RESTful-WCF-Service-API-Step-By-Step-Guide

Any questions, comments? You can leave comment below (in the comment section) or Email me:

Trackback URL

del.icio.us

Save to del.icio.us

Ads

Google
 
Web www.stlplace.com

RSS Feed for This Post4 Comment(s)

  1. Jennifer Wiss | Mar 22, 2012 | Reply

    I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading what you all have to say…
    Plagiarism detection service

  2. Ronpoul | Dec 28, 2012 | Reply

    Hello there, I enjoyed the in depth knowledge that you have put into the post. I am definitely looking forward to see what you come up with next time!
    Sell iphone

  3. aliina | Apr 23, 2013 | Reply

    I’m planning to try this .NET web service, I’ve read some good reviews.
    Windows Phone Next App Star

  4. celebjackets | Apr 27, 2013 | Reply

    Another great post, I appreciate all the work you put into this site, helping out others with your fun and creative works.

1 Trackback(s)

  1. From Some of the Best Personal Finance Software on the Market | profinethub.com | Oct 28, 2012

RSS Feed for This PostPost a Comment

// 最新推荐 Noteworthy
  • *new* 01-05-13: Most recent credit card offers
  • uudaddy (7-09-11): Airline and hotel credit card offers
  • my iPhone apps (4-14-11): myNestEgg ~ retirement income calculator; collegeFund ~ college savings calculator
  • houseOfKittyBlog 06/06/2008: The Inspiration Behind Hello Kitty – Shintaro Tsuji, Founder and CEO of Sanrio
  • Buffett on Market 12/10/2001: Whats in the future for investors
  • Google Ad

    (**use your own discretion for the the following links**)
  • Author作者

    "古人云,人不自信谁人信之." Others won't believe in you unless you believe yourself. --Chinese proverb

    Hello, world :-) I am not another expert. I am an ordinary guy who believes: by lifetime learning, hard and independent work and discipline, little guys can achieve their dreams, too.

    I grew up in China. Currently I am working on iOS (iPhone/iPad) app development. Here I'm also blogging about iOS app/software development, business, personal finance, and other fun stuffs in life. You can leave comment here or Email me: if you wish to remain private.

  • App dev

  • blog

  • China

  • finance

  • Links

  • Major

  • Saint Louis

  • Shanghai

  • Meta

  • Disclaimer声明

    See Disclaimer Page
  • Valid XHTML 1.0 Transitional