| |
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.
|
32 Articles match "Restful","WCF"
| Related DevelopMentor Courses | MORE | | Secure WCF REST Services with a Custom UserNamePasswordValidator When securing WCF services you’re faced with a choice: Message versus Transport security. WCF has terrific support for this scenario and allows you to supply a custom UserNamePasswordValidator , which you can use to validate client credentials. It turns out the serviceCredentials behavior doesn’t really have anything to do with whether it’s a Soap or Rest-based service. To authenticate REST clients, all you have to do is set the security mode of the web http binding to “Transport” and specify a client credential type of “Basic.”. Technical REST Security WCF DevelopMentor Courses - Monday, May 28, 2012 Building Scalable and Secure WCF Services The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Nevertheless, there is one wrinkle: by default the WCF HTTP bindings enable Keep-Alive , which can result in server affinity and thereby impede scalability in a load-balanced environment. Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 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. Named( "Rest" ).WithConstructorArgument( DevelopMentor Courses - Sunday, April 8, 2012 |
82 Articles match "Restful","WCF"
| The Latest from DevelopMentor | MORE | | Unit testing a ASP.NET WebAPI controller 'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. ASP.NET REST WebAPI For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 8: 9: }. 11: {. The Problem Solver - Sunday, May 12, 2013 Building Scalable and Secure WCF Services The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Nevertheless, there is one wrinkle: by default the WCF HTTP bindings enable Keep-Alive , which can result in server affinity and thereby impede scalability in a load-balanced environment. Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 | -
| The Best from DevelopMentor | MORE | - Secure WCF REST Services with a Custom UserNamePasswordValidator
When securing WCF services you’re faced with a choice: Message versus Transport security. WCF has terrific support for this scenario and allows you to supply a custom UserNamePasswordValidator , which you can use to validate client credentials. It turns out the serviceCredentials behavior doesn’t really have anything to do with whether it’s a Soap or Rest-based service. To authenticate REST clients, all you have to do is set the security mode of the web http binding to “Transport” and specify a client credential type of “Basic.”. Technical REST Security WCF DevelopMentor Courses - Monday, May 28, 2012 - Digging into WCF REST
Last Thursday evening I presented a talk to the Dallas.NET User Group on support in WCF 4 for building REST-ful services. Here is a summary of the talk: To REST or Not To REST? Building REST-ful Services with the WCF Web Programming Model REST is defined as an architectural style for building services that embrace the principles of the web. Tony will provide concrete examples of where it makes sense to implement REST-ful web services. Here are some essential resources on WCF REST: WCF REST Developer Center. Tony and Zuzana's World - Saturday, September 10, 2011 - Building Scalable and Secure WCF Services
The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Nevertheless, there is one wrinkle: by default the WCF HTTP bindings enable Keep-Alive , which can result in server affinity and thereby impede scalability in a load-balanced environment. Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 - 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. Named( "Rest" ).WithConstructorArgument( DevelopMentor Courses - Sunday, April 8, 2012 - Using HTTP status codes in a REST service
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. Using HTTP status codes with the WCF Web API returning custom HTTP status codes with the WCF Web API is quite easy. www.dotnetevents.nl.NET WCF REST dotnetmagWhen 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. But there are far more status codes we can use. null ). {. else. {. The Problem Solver - Wednesday, July 20, 2011 - 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.”. Technical WCF DevelopMentor Courses - Tuesday, April 24, 2012 - Using the WCF Web API in an ASP.NET MVC application
Warning: This post is based on a prerelease version of the WCF Web API In my previous blog post I showed how to add to and use the new WCF Web API a console application using NuGet. Now that works but it is far more likely that you will want to be using IIS and host the REST service as part of a web application. So in this blog post I am going to show how to do the normal thing I Created an ASP.NET MVC 3 app to host the REST service. Just like in this post we can add a reference to the WCF Web API to our project. just prefer the MVC approach, you might not. The Problem Solver - Monday, June 13, 2011 %>
| | |