Create claims aware Wcf Service using WIF on Framework 4.0

I was looking for a step by step document to create a claims aware WCF application with WIF. The closest document for a step by step is the document below: http://technet.microsoft.com/en-us/library/adfs2-identity-delegation-step-by-step-guide(d=printer,v=ws.10).aspx. However, it targets advanced users who are willing to implement delegation. Therefore, I have decided to create this one which targets beginners and intermediates…


WIF: Tips on Adding a Service Reference to a Claims Aware WCF Service

Windows Identity Foundation (WIF) allows you to federate your web applications and WCF services to use claims based authentication. When you add a service reference to a claims aware WCF service that federates against ADFS 2.0, your client configuration file will include many configuration elements for making WCF calls to both the ADFS server as…

1

Enabling compression in IIS for an IIS hosted WCF service results in error

SCENARIO=========We have two WCF services hosted in an IIS virtual directory. One acts as a router(Intermediary.svc) and the other as the destination(primary.svc). For this scenario, we have both of these hosted in the same virtual directory but in deployment they may be on the same machine or different machines. The error only occurs when we have  dynamic…

1

WCF security interop scenarios

http://msdn.microsoft.com/en-us/netframework/webservicesinterop.aspx has the following case studies which are a great resource for interop scenarios and have been tested with specific vendors.  Resources Case Studies Whitepapers Videos Blogs SAP-to-WCF Interoperability Metro-to-WCF Interoperability Data Type Interoperability Between .NET and Java Oracle WebLogic-to-WCF Secure Messaging Interoperability IBM WebSphere-to-WCF Secure Messaging Interoperability The following are some adhoc scenarios that…

4

"The Update does not apply to your system" error when installing a .net framework hotfix

Resolution: You may receive this error if you do not have the required prerequisites installed. Before installing a hotfix please review the prerequisites section of the hotfix knowledge base article and confirm that you have the proper operating system service pack or .NET Framework service pack installed.The service pack pre-requisite can be found in the…


WCF Interoperability Guidelines – 1 : Reference Style of a Primary Signing Token inside a response

Making things work with a disparate entity is always a difficult task to accomplish. Things are no different in WCF Interoperability space. While significant developments have been made over the years to standardize various protocols and develop products which adhere to these protocols, differences are always there. Through the course of this article and subsequent…

1

SSL Offloader Using WCF 4.0 Routing Service

WCF Routing Service is a new feature introduced with WCF 4.0. While this article is not about explaining what it is (complete details about WCF Routing Service is available here), I must admit that this new feature is simply awesome. It has made pain points like protocol bridging and handling communication exceptions a no brainer…


WCF Service using wsHttpBinding hangs after 10 concurrent requests

Scenario: WCF service hosted in IIS uses default wsHttpBinding.Clients call WCF service and do not explicitly close the connection(via proxy.close).After 10 connections to the service, client requests appear to hang. Troubleshooting:Capturing a dump of the IIS worker process when the requests were hung showed that the WCF service is not accepting any more connections because we have hit…


WCF Client Code Generation – Issue with "Reuse types from referenced assemblies" option in Add Service Reference

I believe, there are some questions around “Resuse types from referenced assemblies” option under “Add Service Reference” in Visual Studio. Recenty, had the opportunity to invetigate it and here’s what we found: When attempting to generate the client side code from the service metadata, and using the “Reuse types from referenced assemblies” option, both svcutil and Add…


Manipulate a WCF request / response using a custom encoder

Message Encoders are an interesting component within WCF channel stack. It’s primary job is to transform Message instances to and from the wire. While it has an independent existence within a WCF binding stack in the form of a Message Encoding binding element, in essence it is closely integrated with the underlying transport layer. This…

2