| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
11 Articles match "Restful Services","WCF"
| Related DevelopMentor Courses | MORE | | Ninject WCF Extensions for RESTful Services while ago I blogged about using Ninject for dependency injection with WCF Services. The problem with WCF services is that by default they are required to have a parameterless constructor, which does not play nice with DI containers, such as Ninject , which support injection of dependencies via constructor parameters. had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Things get a little tricky, however, if you want to expose both SOAP and REST endpoints from the same WCF service. DevelopMentor Courses - Sunday, April 8, 2012 Secure WCF REST Services with a Custom UserNamePasswordValidator When securing WCF services you’re faced with a choice: Message versus Transport security. Using SSL is generally the best choice for ensuring point-to-point privacy and integrity, which lets you pass user credentials over the wire when directly invoking service operations. WCF has terrific support for this scenario and allows you to supply a custom UserNamePasswordValidator , which you can use to validate client credentials. This will cause the service to look in a soap header for client credentials. Technical REST Security WCFEnjoy. DevelopMentor Courses - Monday, May 28, 2012 Roll Your Own REST-ful WCF Router Recently I’ve been tasked with building a WCF routing service and faced the choice of whether to go with the built-in router that ships with WCF 4.0 , or to build one from scratch. However, as the MSDN documentation for the WCF Router states, “ The Routing Service does not currently support routing of WCF REST services. In fact, using the BasicHttpBinding with AspNetCompatibility enabled on the built-in WCF router results in a somewhat cryptic error : “Shouldn’t allocate SessionChannels if session-less and impersonating.”. DevelopMentor Courses - Tuesday, April 24, 2012 |
46 Articles match "Restful Services","WCF"
| The Latest from DevelopMentor | MORE | | Simple WCF SOAP-REST Multi-Project Template did it again: another multi-project Visual Studio template – this time for a simple WCF service that exposes both SOAP and REST endpoints. My other REST and SOAP templates are intended as a starting point for more real-world WCF services. However, what I often need is a starting point for building a “proof-of-concept” service in order to explore various configuration options and scenarios. Search for “WCF SOAP-REST” in the Online Gallery, then click Download to install the extension. Technical REST SOAP Visual Studio WCF DevelopMentor Courses - Monday, June 11, 2012 Secure WCF REST Services with a Custom UserNamePasswordValidator When securing WCF services you’re faced with a choice: Message versus Transport security. Using SSL is generally the best choice for ensuring point-to-point privacy and integrity, which lets you pass user credentials over the wire when directly invoking service operations. WCF has terrific support for this scenario and allows you to supply a custom UserNamePasswordValidator , which you can use to validate client credentials. This will cause the service to look in a soap header for client credentials. Technical REST Security WCFEnjoy. DevelopMentor Courses - Monday, May 28, 2012 Roll Your Own REST-ful WCF Router Recently I’ve been tasked with building a WCF routing service and faced the choice of whether to go with the built-in router that ships with WCF 4.0 , or to build one from scratch. However, as the MSDN documentation for the WCF Router states, “ The Routing Service does not currently support routing of WCF REST services. In fact, using the BasicHttpBinding with AspNetCompatibility enabled on the built-in WCF router results in a somewhat cryptic error : “Shouldn’t allocate SessionChannels if session-less and impersonating.”. DevelopMentor Courses - Tuesday, April 24, 2012 | -
| The Best from DevelopMentor | MORE | - Ninject WCF Extensions for RESTful Services
while ago I blogged about using Ninject for dependency injection with WCF Services. The problem with WCF services is that by default they are required to have a parameterless constructor, which does not play nice with DI containers, such as Ninject , which support injection of dependencies via constructor parameters. had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Things get a little tricky, however, if you want to expose both SOAP and REST endpoints from the same WCF service. DevelopMentor Courses - Sunday, April 8, 2012 - Secure WCF REST Services with a Custom UserNamePasswordValidator
When securing WCF services you’re faced with a choice: Message versus Transport security. Using SSL is generally the best choice for ensuring point-to-point privacy and integrity, which lets you pass user credentials over the wire when directly invoking service operations. WCF has terrific support for this scenario and allows you to supply a custom UserNamePasswordValidator , which you can use to validate client credentials. This will cause the service to look in a soap header for client credentials. Technical REST Security WCFEnjoy. DevelopMentor Courses - Monday, May 28, 2012 - Using HTTP status codes in a REST service
When we build services, or write any code for that matter, error can occur and we have to cater for those. With SOAP service we gibe a calling application information about the error by returning a SOAP fault. When we are building REST service we embrace HTTP and as a result we also embrace all the HTTP status codes, not just 200 and 500. 5xx is all about service errors With these status codes we indicate that something went wrong in the service. In that case the service would return a 401 Unauthorized status. Book GetBook( int id). {. null ). {. The Problem Solver - Wednesday, July 20, 2011 - Building rich HTML 5 clients using REST services
You can download the slide from my session on Building rich HTML 5 clients using REST services here and the sample application using the WCF Web API here. www.dotnetevents.nl.NET WCF webcast ASP.NET REST dotnetmag HTML5The slides are also available on SlideShare. Enjoy! www.TheProblemSolver.nl The Problem Solver - Wednesday, October 26, 2011 - Building rich HTML 5 clients using REST services recording
For those who missed the online event about building JavaScript and HTML 5 client for a REST service build using the new WCF Web API the recordings are up. www.dotnetevents.nl.NET WCF webcast ASP.NET REST HTML5You can download the hi res recording here or download one of the other formats from the main page here. And remember there a bunch of other useful recording from other DevelopMentor instructors on the same page. Enjoy! www.TheProblemSolver.nl The Problem Solver - Thursday, November 3, 2011 - Token based Authentication for WCF HTTP/REST Services: Authentication
This post shows some of the implementation techniques for adding token and claims based security to HTTP/REST services written with WCF. Should work with WCF web programming model either self-host or IIS hosted. Service code can rely on an IClaimsPrincipal on Thread.CurrentPrincipal that describes the client using claims-based identity. In WCF the main extensibility point for this kind of security work is the ServiceAuthorizationManager. For HTTP based services we can do something very similar. Disclaimer. Goals and requirements. Error handling. www.leastprivilege.com - Tuesday, November 15, 2011 - On building Restful services
I recently did a few blog posts showing the basics of how to get started with the WCF Web API but before I continue I think it is best to start with the why instead of how. lot of people will be familiar with writing SOAP style services but not everyone is quite as familiar with the REST approach so I guess that takes a bit of explanation. This subject is a bit long for a single blog post so I am going to do a number explaining what REST is, the difference with SOAP and how to build these Restful services using the WCF Web API. Enjoy! The Problem Solver - Tuesday, June 21, 2011 %>
| | |