George V. Reilly's Technical Blog

Building a REST Web Service, day 1

http://upload.wikimedia.org/wikipedia/en/thumb/8/89/Resttriangle.svg/273px-Resttriangle.svg.png

My first project at Cozi is to build a simple REST-style Web Service. Nobody here has done that before.

The first thing that I'm trying to get going is a simple URL rewriter, using an ASP.NET HttpModule.

I'm running Vista as my development desktop for the first time. So far, not bad, but there are lots of new quirks to get used to. I've been a good boy so far and I've left the User Access Control stuff enabled, so that I'm not running with administrative privileges by default.

It's my first exposure to IIS 7. I must say that the IIS UI is much improved (a low bar to surmount).

My first problem was that Skype was squatting on port 80, preventing browser requests going to localhost. This happens to me about once a year on a new dev machine, and I always forget.

To get the HttpModule going, I had to follow Mark Rasmussen's detailed instructions on making URL rewriting on IIS 7 work like IIS 6. The code will be deployed on Windows Server 2003, so IIS 6 compatibility is more important to me than IIS 7 purity.

I was trying to get some debug output appearing in DebugView, but my Trace.WriteLines were not showing up. Some Googling eventually showed me that I had to enable Capture Global Win32, which I never had to do before. Presumably because ASP.NET is executing in a different desktop session.

Posted: Aug 14 2007, 07:58 PM by george_v_reilly | with 10 comment(s)
Filed under:

Comments

Marcvs said:

Have you made any progress on this?  I've been investigating REST-style web services on IIS, and it seems like a pain in the butt to implement

# August 28, 2007 12:15 PM

George V. Reilly said:

Very little. I went on vacation just after posting this and it's been on the back burner since I got back.

# September 24, 2007 6:26 PM

Orammapygiemi said:

You have a beautiful website! boy george has a very beautiful song: http://tinyurl.com/yblezwh

i had fallen in love with this song, i can't help myself

have a blessed holidays and good year

# December 15, 2009 5:39 AM

Steave said:

Cool blog you got here. It would be great to read something more about that matter. Thanx for sharing that information.

# February 14, 2010 2:28 PM

Tasha said:

Good afternoon. Calamities are of two kinds: misfortunes to ourselves, and good fortune to others. Help me! Please help find sites for: Trading share stock maket trading. I found only this - <a href="leadership.nlada.org/.../ShareTrading">online share trading</a>. The compounding injured with it over-rule of information to forest million and all of the setting, day, trading relations and technical consumers for siltronics's such retail price order life, share trading. Share trading, stocks should thereby lose to drive and persuade its few established penny many of trading from the network chip. With respect :eek:, Tasha from Micronesia.

# March 25, 2010 1:47 AM

girls brunette said:

Pretty interesting place you've got here. Thanks for it. I like such themes and everything connected to them. I would like to read more on that blog soon.

Hilary Smith

# August 11, 2010 2:57 PM

Kids Yoga said:

"This is truly my extremely 1st time right here, and i should say it is a truly wonderful web site. I've uncovered plenty of fascinating stuff inside your web site especially in its  discussion. From all the great feedback on your posts, it seems like that is a very well liked net internet site. Preserve up the wonderful do the job."

--------------------------------------------

my website is  

http://zeroskateboards.org

Also welcome you!

# November 18, 2010 11:09 AM

ipads to review said:

Sow nothing, reap nothing.

-----------------------------------

# December 24, 2010 12:02 PM

cool ipad case said:

-----------------------------------------------------------

their is usually a trouble in the first site.

# January 3, 2011 8:27 PM

ipad stand said:

-----------------------------------------------------------

"Google is fantastic, it's the heart of all the data! Laughing  We're equipped to ask regardless of we'd like, and yahoo will reply them. Like correct now, I am exploring, browsing for entertainment and information, and at final found your posting. It give me what I wanting for. Appreciate it inside your posts, this is incredibly helpful."

# January 8, 2011 6:28 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)