| |
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.
|
21 Articles match "Configuration","WCF"
| Related DevelopMentor Courses | MORE | | 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. To disable Keep-Alive, you need to create a custom binding, because this setting cannot be configured for the standard HTTP bindings. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. 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. Luckily, the Ninject WCF Extension project had been updated to support REST, so I updated the Nuget package and discovered the project would not compile. DevelopMentor Courses - Sunday, April 8, 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.”. Technical WCFEnjoy. DevelopMentor Courses - Tuesday, April 24, 2012 |
82 Articles match "Configuration","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. With just this change you will see an InvalidOperationException with the following message: System.InvalidOperationException: The request does not have an associated configuration object or the provided configuration was null. The stack trace gives a clue and it turns out we need to configure the HTTP routing on the HttpConfiguration object. 1: public class BooksController : ApiController. 6: : this ( new BooksRepository()). The Problem Solver - Sunday, May 12, 2013 The Architecture of WCF 'Before WCF it was, of course, possible for software running on different machines to communicate. The goal of WCF was to provide a unified API for communication and to be able to provide a common level of service irrespective of the underlying transport. To understand the structure of WCF and why it looks the way it does useful starting point are the four tenets of service orientation. There are three core concepts at play whenever you use WCF: messages, channels and encoders. Message is a first class construct in WCF and are modeled on SOAP messages. DevelopMentor Courses - Sunday, April 7, 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. To disable Keep-Alive, you need to create a custom binding, because this setting cannot be configured for the standard HTTP bindings. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. DevelopMentor Courses - Monday, June 18, 2012 | -
| The Best from DevelopMentor | MORE | - Using Silverlight to Access WIF secured WCF Services
Another technology that comes up very often is Silverlight – and especially the “story” of Silverlight and WCF/WIF. Those of you with WCF background will say: “that’s what the federation bindings in WCF are for”. Since the client is not configured for security this header may be unexpected. In WCF you can work around that problem by adding the ValidateMustUnderstand behavior to the client stack. Tags: IdentityModel WCF This topic comes up quite often recently – so I hope the title is search engine friendly. Hopefully this will be a non-issue soon. www.leastprivilege.com - Wednesday, October 28, 2009 - 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. 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. He’ll also get down and dirty using the WCF Web Programming Model and show how WCF makes it easy to serve up POX or JSON, increasing the reach of your services to clients that don’t understand or care about SOAP. WCF 3.5 WCF 4.0 Technical WCFEnjoy. Tony and Zuzana's World - Saturday, September 10, 2011 - Using Ninject with WCF Services
In an ASP.NET MVC application, it is possible to use repositories directly from controllers, but it may be desirable to place a WCF services façade over the data access layer, so that other kinds of clients, such as Silverlight or WPF, won’t directly access the database. This works great for configuring a WCF service to use dependency injection, but there are times when you might need to spin up a WCF service for an integration test using a testing framework such as NUnit or MSTest. Technical DI Ninject WCFDownload the code for this post. Enjoy. Tony and Zuzana's World - Monday, October 24, 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 WCFEnjoy. DevelopMentor Courses - Tuesday, April 24, 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. To disable Keep-Alive, you need to create a custom binding, because this setting cannot be configured for the standard HTTP bindings. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. 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. Luckily, the Ninject WCF Extension project had been updated to support REST, so I updated the Nuget package and discovered the project would not compile. DevelopMentor Courses - Sunday, April 8, 2012 - WF4&WCF and message correlation
In the previous blog posts, here , here and here , I demonstrated how to use WCF from WF4. One of the ugly parts of Windows Workflow Foundation 3 was the message correlation part when you used WCF to send multiple messages to the same workflow. This guid was the workflow instance ID but having to use that on the client means the client had to be very aware of the server technology used, something that goes against the principals of WCF. No longer do we need to use the “context” bindings but the standard WCF bindings will do just fine. Much better! OperationContract]. The Problem Solver - Wednesday, September 2, 2009 %>
| | |