| |
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.
|
36 Articles match "WCF"
See all articles with
"WCF"
| The Latest from Tony and Zuzana's World | 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. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. The trick is to fool WCF into thinking we are using a secure channel when in fact we are not. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 | | The Best from Tony and Zuzana's World | MORE | | 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 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 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 - 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. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. The trick is to fool WCF into thinking we are using a secure channel when in fact we are not. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 - 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. The nice thing about WCF is its unified programming model, which allows you to use the same username / password validator for both Soap and Rest clients. Technical REST Security WCFDownload the code for this blog post here. You’ll need to set the security mode of the basic HTTP binding to “TransportWithMessageCredential.” DevelopMentor Courses - Monday, May 28, 2012 - WCF Data Services versus WCF Soap Services
Someone recently asked me this question: When a company that has been using 2 tiers wants to move to n-tier, what are the considerations for choosing WCF and STEs [or Trackable DTOs] vs. WCF Data Services? This is a great question because it relates to a recent re-alignment of what used to be called “ADO.NET Data Services” (code-named Astoria) under the umbrella of Windows Communication Foundation (WCF), as well as the renaming of.NET RIA Services to WCF RIA Services. That’s because WCF supports the WS-* SOAP protocols that have evolved over the last several years. Tony and Zuzana's World - Tuesday, April 13, 2010 - Build a Multi-Project Visual Studio Template
Here is an example of a VSTemplate file I created for a Multi-Project WCF REST Template I recently did for a talk I gave at a.NET developer group (some of the content has been elided for clarity). For my WCF REST template I wanted the Client and Service projects to both reference the Entities project, and for the Web project to reference the Service project. In the the case of my WCF REST Template, I have indicated it should appear under the WCF category. Technical Visual Studio WCFDownload the code for this article here. saferootprojectname$.Entities Enjoy. Tony and Zuzana's World - Wednesday, September 14, 2011 - Use Common Instance Factory to Abstract Away the Dependency Injection Container
Download the Common Instance Factory with WCF Extensions here and is also available on NuGet. This led me to develop the Common Instance Factory , as an alternative to the Common Service Locator, and to extend it with support for WCF services that are decoupled from any particular DI container. The power of the abstraction comes to the fore when using dependency injection with frameworks such as ASP.NET MVC or WCF. Technical DI WCFIn this example, an IGreetingRepository is passed to the GreetingService’s constructor. Ah, but there’s a problem. Stay tuned for more!) DevelopMentor Courses - Wednesday, May 23, 2012 - WCF RIA Services Webinar
I’m performing a free webinar today for DevelopMentor : Turbocharge Silverlight Development w/WCF RIA Services. WCF RIA Services simplifies and streamlines the process with support for query composability, change-tracking and batch updates, attributes for presentation and data validation, shared code and async support. It’s taking place today, Wed April 20, 2011, at 3 pm pst, 11 pm bst. Here’s the description: Writing a full-fledged Rich Internet Application presents a number of daunting challenges: forced n-tier, async, latency, validation, concurrency, and authentication. Tony and Zuzana's World - Wednesday, April 20, 2011 %>
310 Articles match "WCF"
See all articles with
"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. 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. 1: public class BooksController : ApiController. 11: {. Maurice de Bejeir - Sunday, May 12, 2013 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. 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. 1: public class BooksController : ApiController. 11: {. The Problem Solver - Sunday, May 12, 2013 | -
| The Best from DevelopMentor | MORE | - WCF Duplex Messaging
I am one of the moderators of the MSDN WCF Forum. However, the first three of these are supported natively in WCF and are known as One-way, request/response and duplex. Duplex Contracts in WCF. In WCF this idea is modelled by the contract. WSHttpBinding is the default for the built in WCF projects but it does not support duplex messaging. It will also need to supply this implementation to the WCF infrastructure and it does this by wrapping an instance in an InstanceContext object and passing it to the proxy constructor. Tags: NET;Azure;WCF .NET Meanderings - Tuesday, June 9, 2009 - WCF Instances and Threading
I have just found myself answering essentially the same question 4 times on the MSDN WCF Forum about how instances, threading and throttling interact in WCF. WCF has 3 built in instancing models: PerCall, PerSession and Single. By default WCF assumes you do not understand multithreading. Unless you turn on ASP.NET Compatibility, WCF calls are processed on IO threads in the system threadpool. You can control the throttle values using the serviceThrottling service behavior which you set in the config file or in code.NET;WCFInstancing. Concurrency. DevelopMentor Courses - Friday, February 4, 2011 - 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 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”. 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. Disclaimer: At the time of this writing, the current version of Silverlight is v3 and WIF is in beta 2. Passive. Active. WSTrust13. www.leastprivilege.com - Wednesday, October 28, 2009 - 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 %>
| | |