开发者

Is WCF the right tool for this?

开发者 https://www.devze.com 2023-03-01 03:47 出处:网络
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?

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

精彩评论

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

关注公众号