DCSIMG
WCF - Manu Cohen-Yashar's Blog

Manu Cohen-Yashar's Blog

Browse by Tags

All Tags » WCF (RSS)
Convert SAML token to SWT token using ACS
In Claim based applications we use token to provide the application (Relying party) with details (a collection of claims) about the the authenticated identity. In ASP.net web sites and WCF SOAP services SAML tokens are used as a container for the claims. SAML is a standard that describe how token and claims are constructed and how they are cryptographically protected using digital signature and encryption. SAML tokens are powerful yet they are large. The size of the token is not a real issue in ASP...
WCF Advantages
It is time for the big customers to move to WCF. WCF is 5 years in the market. We are moving into the third version (WCF 4.0)  and there is no doubt that WCF is mature enough for the big customers (who hate to take risks). The managers ask me: Why WCF ? So I wrote this short summary for executives to read: WCF is a unified framework for rapidly building service oriented applications.WCF is the most powerful of all distributed applications frameworks, yet it is the simplest to work with. WCF...
Reading ETW tracing using Event Viewer
I was looking for a tool to read ETW tracing data. It turned out that the tool I need is right under my nose. Event Viewer. The problem was that ETW (using the logman tool) produces etl files that are not readable by Event Viewer. Fortunately there is a trick. I tried to load the etl file by Event Viewer using open saved log and it failed to load. Event Viewer I saved the etl file as an evtx file and now I could see the tracing data. For WCF and WF you do not need the etl file. All you have to do...
Data Contract topology in WCF 4.0 - DataContractResolver
In WCF 3.x, type resolution was done using the “known types” mechanism. During deserialization, when the serializer encounters an instance that isn’t of the same type as the declared type, it inspects the list of declared “known types” to figure out what type to use. As the author of the service, you could annotate your types/methods with the [KnownType] or [ServiceKnownType] attributes to define the list of possible substitutions. (in code or config) Unfortunately, WCF 3.x doesn’t provide an easy...
Reporting and SOA
SOA is an architectural style that promises agility, scalability and reuse. The bottom line is SOA can save you money. There are many definitions to SOA. The best definition I found states that a service is something that exposes functionality by accepting data and maybe returning data. Service is simple. Data in - Data out. To achieve all the SOA advantages a service must be autonomous .  The problem starts with reporting and ETL. The traditional two tier or three tier architecture had the...
How to flatten your WCF WSDL
Hi I was asked so many times how to flatten WCF WSDL for interoperability pupuses So I would like to reference two links with the answer 1. Flatten your WSDL with this Custom ServiceHost for WCF 2. Improving WCF Interoperability: Flattening your WSDL Manu
The Story of WCF invocation on IIS
The story starts just after the request has been dispatched to the worker process, but before pretty much anything else has run. We now join the following thought process already in progress: ...We have a piece of infrastructure (an HttpModule for the HTTP case, a new thing called a ProtocolHandler for the non-HTTP case in WAS) that receives Indigo requests and stuffs them into a holding area while the transport stack comes up. The magic API is ServiceHostingEnvironment.EnsureServiceAvailable( string...
Extend ServiceHost on IIS Hosting Scenarios.
Extend ServiceHost on IIS Hosting Scenarios. The motivation for API’s that I’m going to talk about in this post stems from the fact that the standard API for hosting services in WCF (System.ServiceModel.ServiceHost) is a first-class extensibility point in the WCF architecture. We expect that lots of folks will derive their own host classes from ServiceHost, usually with the intent of overriding ServiceHost.OnOpening in order to do interesting things with the ServiceDescription (e.g. adding default...
Spliting WCF config files
ConfigSource attribute on system.serviceModel section The configSource attribute was firstly introduced in .NET framework 2.0 to support external configuration files. This attribute can be added to any configuration section to specify a an external file for that section. Using an external configuration source can be useful in many scenarios. For instance, you could place a section into an external configSource if you need an easy method to swap settings for the section depending on the environment...
Web Service Software Factories for VS2008 is here
The moment we have been waiting for so long had come: Web Service Software Factories for VS2008 was released Download and enjoy manu
Hosting WCF: IIS or Windows service
I have been asked many times by customers how to choose a WCF host. IIS or self host? (A self host is usually implemented as a windows service) So first we have to understand that we are in the Http world because IIS is not playing in the game of other transports (excluding SMTP). IIS has a very special life model. IIS was designed for hosting many stateless applications. If an application hosted by IIS is not called for x minutes (20 by default) it will be recycled. Resource recycling is important...
Serializable Dictionary
Serializable Dictionary I wanted to use a dictionary<T> to create a MSMQ message but I found that a dictionary is not serializable. I spoke to a good friend “Adar Wesley” and he gave me the code of a Serializable Dictionary<T> he wrote. So here it is. Enjoy. Download: SerializableDictionary
WF and Silver / WCF 3.5 examples
WF and Silver / WCF 3.5 examples I wanted to play around a bit with WF and WCF in framework 3.5 (silver) and installed VS 2008 Beta2. I found samples for CTP version, but they did not run as a lot has changed from the CTP to the current Beta 2. I wanted to explore those changes and thus I manually maid the CTP version compile on VS Beta2. I wanted to explore the context that WCF and WF share so I worked with the SequentialWorkflowService sample. It did not run. I Got the following exception: WorkflowTerminated...
WF and WCF Performance
Do you want to learn about WF and WCF Performance? Well I collected some articles for you: 1. Performance Characteristics of Windows Workflow Foundation 2. WF Performance Test Sample: SimpleStateMachineWorkflow 3. WF Rules and MS BRE - Comparing Performance 4. Introduction to Hosting Windows Workflow Foundation 5. Monitoring Workflow Performance (WF Perormance counters) 6. Windows Workflow Foundation - Performance Factors and I can not with some litle WCF performance ... 7. A Performance Comparison...