The Best from DevelopMentor
324 Results found
Showing page 1 of 33
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.
- Sunday, April 7, 2013
Why Does WCF Reject Large Messages By Default?
'If you have been working with WCF for a while you may have noticed that, by default, messages over a certain size fail to get processed. The reason for this is that WCF tries to protect the message receiver from getting swamped with messages that will consume huge amounts of memory to process. Once the binding allows messages larger than 64Kb that may not be the whole story as there are other default limits in WCF: quotas and serializer limits. Prior to WCF 4.5 However, in WCF 4.5 One final word on default endpoints introduced in WCF 4.0.If
- Monday, April 8, 2013
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
- 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.
- Friday, February 4, 2011
Custom WCF Credential Types
Every once in a while the question comes up how to extend WCF with custom credential types. Unfortunately this is not the best documented area of WCF and you are mostly on your own. The WCF credential infrastructure is extremely flexible – but I wouldn’t call it an extensibility point – but rather a replacement point. You could use a standard token type in WCF that already supports all the extensibility needs you might have – e.g. SAML. Tags: WCF;IdentityModel username/password/customer ID). You could use SOAP headers to transmit the additional information.
- Monday, March 9, 2009
P2P and WCF: The PeerName Tool
- Tuesday, May 13, 2008
WCF Express Interop Bindings
WCF might use the WS-* SOAP standard for communications but the WS-* specs leave vendors with a lot op maneuvering room when it comes to how to exactly implement things. As a result doing interoperable work between WCF and, for example, an IBM WebSphere server can be quite tricky to setup. Something I have experienced all to often Fortunately Microsoft has now released the WCF Express Interop Bindings that should make live quite a bit easier. www.dotnetevents.nl.NET WCF VS2010You can download them from CodePlex here. Enjoy! www.TheProblemSolver.nl
Maurice de Bejeir
- Monday, June 20, 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
Inversion of control and WCF
One of these case is with an WCF service where WCF takes care of the service lifetime and creates new objects as needed. Fortunately WCF is designed in a very modular fashion itself and allows you to replace almost everything in the box. Basically WCF uses an implementation of the IInstanceProvider to create new service objects. Using Ninject with WCF There are plenty of IOC containers to choose from but I like Ninject and that is available through NuGet so that is what I will use for this example. www.dotnetevents.nl.NET WCF VS2010 NuGetrepo = repo; }.
Maurice de Bejeir
- Tuesday, April 19, 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.
- Wednesday, October 28, 2009