The blog of Rahoul Baruah from 3hv Ltd

What's going on?

My name is Rahoul Baruah (aka Baz) and I'm a software developer in Leeds (England).

This is a log of things I've discovered while writing software in Ruby on Rails. In other words, geek stuff.

However, I've decided to put this blog on ice - I would ask you to check out my business blog here (or subscribe here).

14 December, 2005

Update on the web service scaffold

I've tracked it down to my URL rewriting.

The scaffold calls http://somewhere/service/invoke?service=something&method=whatever

However, the failure is method is nil - therefore I reckon my URL rewriting code is somehow chopping up the query string and therefore the method part (and maybe even the service part) is not getting passed through.

Now I know where to look, I can put this back on the shelf and do some paid work!

2 comments:

royashbrook said...

i remember working on a site once that had a url rewriter at the root for redirecting https traffic. unfortunately, it was chopping off the querystring which was being used during a post for my web service. although i was sending post requests, this was running in the root (it was cold fusion) of the entire site and intercepted *anything* that wasn't https. so i always got nada back. maybe it's something like that in the rewriter?

Baz said...

I suspect it is connected with my modifications of the request.rb file (http://made-of-stone.blogspot.com/2005/12/setting-up-iis-for-rails.html) - the original code always inserted a "?" whereas I found that causing problems. Maybe I need to do a conditional insert of a "?". Some more investigation is called for I think.

eXTReMe Tracker