开发者

Is WCF the right tool for this?

I am trying to setup WCF to accept urls with querystrings as parameters, but this is proving quite difficult. Is WCF the right tool for the job? Should I be using something like IHttpHandler instead?

The last开发者_StackOverflow problem I ran into was that it couldn't figure out which url template to use, because of the querystrings.

Example URLs

http://ww.somedomain.com?sessionid=123123&language=en&mode=true
http://ww.somedomain.com?sessionid=123123&language=en&mode=true&type=login


Yeah, I'm not sure why you would use a WCF service to do this. A custom HTTP Handler sounds more appropriate.


If you are using REST capabilities of WCF with webHttpBinding this should be easy. For url mapping you can use IIS 7 Url rewrite to compose any specific format url's

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜