| |
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 "Resources","WCF"
| Related DevelopMentor Courses | MORE | | 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. Throttling is there to ensure your service is not swamped by in terms of resources. Instancing. To add to the confusion, this setting is the default. Concurrency. DevelopMentor Courses - Friday, February 4, 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 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. The main reason for this is the HTTP convention to return a 201 Created status code and to include the HTTP Location header with an URI where the new resource can be found. 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. 1: public class BooksController : ApiController. 6: : this ( new BooksRepository()). 8: 9: }. The Problem Solver - Sunday, May 12, 2013 |
37 Articles match "Resources","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. The main reason for this is the HTTP convention to return a 201 Created status code and to include the HTTP Location header with an URI where the new resource can be found. 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. 1: public class BooksController : ApiController. 6: : this ( new BooksRepository()). 8: 9: }. The Problem Solver - Sunday, May 12, 2013 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 Client side support with the ASP.NET Web API And where in the previous WCF Web API this would have worked because XML was the default type if nothing was specified this has changed. Of course this should really have been a 201 Created with the URL pointing to the location of the new resource but we still need to look at how to control the response message from the ApiController. With REST there is not a lot required on the client as far as sending requests goes. As long as you can send HTTP GET requests you are good to go and there are very few programming stacks that don’t allow for some form of doing that. 11: }. 13: {. The Problem Solver - Tuesday, March 13, 2012 | -
| The Best from DevelopMentor | MORE | - 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. Throttling is there to ensure your service is not swamped by in terms of resources. Instancing. To add to the confusion, this setting is the default. Concurrency. DevelopMentor Courses - Friday, February 4, 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. This approach works fine while running in the browser and using “application-local” resources only. 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. Passive. Active. 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 - 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 - 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. Just like in this post we can add a reference to the WCF Web API to our project. few interesting things to note here: We are using the standard WCF ServiceContract attribute to indicate this is a service. routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" just prefer the MVC approach, you might not. Enjoy! The Problem Solver - Monday, June 13, 2011 - 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 - About logins and searches as resources
A reader posted a question in my blog post about REST services and URL’s about modeling search and login as a resource. About using [link] as a URL in a REST service The URL [link] suggest that there is a resource login while login clearly is an action, not a resource. would argue that search is another action and not a resource so it should not be part of the URL. Now someone could argue that the fact the books are resources and searching would return a collection of books and I would completely agree. routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" The Problem Solver - Monday, July 18, 2011 %>
| | |