Allowing Access to HttpContext in WCF REST Services

Posted by: Rick Strahls WebLog, on 10 Jan 2011 | View original | Bookmarked: 0 time(s)

If youre building WCF REST Services you may find that WCFs OperationContext, which provides some amount of access to Http headers on inbound and outbound messages, is pretty limited in that it doesnt provide access to everything and sometimes in a not so convenient manner. For example accessing query string parameters explicitly is pretty painful: [OperationContract] [WebGet] public string HelloWorld() { var properties = OperationContext.Current.IncomingMessageProperties; var property =...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: WCF | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1012 | Hits: 33

Similar Posts

  • Exporting SWF & FLV format reports in SSRS 2005 and 2008 more
  • Sharing the security context between ASP.NET and WCF REST Services more
  • Dev Connections - The Code! more
  • What is .NET RIA Services? more
  • Talking Points: ASP.NET Data Services more
  • Aspose.Slides for Reporting Services supports SQL Server 2008 more
  • Aspose.Total for Reporting Services Q4 2008 Released more
  • December 9,10,13th, 2008 - A Busy week in PHX with MSFT more
  • RESTful Live Search Service more
  • It just got easier to build REST apps in .NET more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD