Browse by Tags

Tagged Content List
  • Blog Post: WCF 4: AddDefaultEndpoints

    Note: Cross posted from Sajay . Permalink Here is another little goodie we have which will help in reducing configuration. You can use the ServiceHostBase.AddDefaultEndpoints which will pretty much probe your service implementation for contracts and expose them as shown below. Notice that I don't...
  • Blog Post: ServiceThrottlingBehavior defaults for .NET 4

    This is one of the new updates that you will find with the .NET 4 installation. This was a decision we reached after understanding the fact that almost all customers had to bump this number up to a sweet spot of around 100 sessions. However the initial decision of keeping a very low number was a conscious...
  • Blog Post: WCF Scalability and IIS

    Couldn't get better than this. Wenlong has pretty much detailed out to the gory details of understanding WCF scalability in these posts. WCF Request Throttling and Server Scalability Orcas SP1 Improvement: Asynchronous WCF HTTP Module/Handler for IIS7 for Better Server Scalability The fact...
  • Blog Post: Finally Zermatt's here

    IIts been a long wait. After working with customers for getting out their token service and doing all the claim based black magic, finally we have a framework. Its not a bubble gum and match stick situation more and its a full framework. If you want to build applications and solve your federation...
  • Blog Post: Time for your operation execution using the Operation invoker.

    Have you ever wanted to do something like this . // Define a service contract. [ ServiceContract (Namespace= "http://Microsoft.ServiceModel.Samples" )] public interface ICalculator { [ OperationContract ] [ PerfOperationBehavior ] double Add( double n1, double n2); [ OperationContract...
  • Blog Post: Sending a simple String using WCF - Understanding the channel stack.

    The snippet below might not be for the faint hearted. Primarily since its quite gory wcf. I realized that there is so much abstraction in the Service model's channel layers thats its only justice that someone does a simple sample in how to send and read raw messages. I would suggest you to understand...
  • Blog Post: Timeouts and WCF - httpRuntime

    There seems to be very little documentation around the timeout behaviors for the client and service and configuring so many knobs can get you in a fix if you dont know what you are tweaking. The below snippet shows how enable one of these scenarios to keep connections open for long processing message...
  • Blog Post: Applying Service Orientation through WCF

    I was supposed to talk more about Development processes at Techmela on this Topic. But then I decided to share one particular aspect that i have learned over and over again when dealing with customers who have gone and developed multi-layered services and clients. There are some common aspects that i...
  • Blog Post: Durable Tokens Across Services - Share your tokens

    There seems to be quite a number of time when you want to perform your authentication once and then you just go ahead the want to just call a service without performing the authentication again. What are some advantages of this ? 1. You get to manage your authentication independently. - Also results...
  • Blog Post: WCF Performance Comparison

    I have been waiting for this article for quite some time. Read all about it here
  • Blog Post: Thoughts on BasicHttpBinding, Security and SSL

    BasicHttpBinding, can there be security?. Yes! The point is this binding can be secured and that too with transport level security and restricted to https(SSL) or message level Check this post for details. http://blogs.msdn.com/drnick/archive/2006/06/01/612672.aspx . Another common question is about...
  • Blog Post: TransportWithMessageCredentials - I need to know who is knocking on my door.

    The point to be noted here is that even though the security facts of comminication like integrity and confidentiality is taken care of by the transport we might not get enough information from the client as to "Who are you?". Now for this case you need to add in some credentials about the clients. ...
  • Blog Post: Adding a Message Header without using a MessageContract

    Using Message contracts is quite a straight forward way of creating and adding message headers.But then again you might just want to add a header without going downt that route like this post by Kenny . You generally come across 2 scenarios where you want to add headers in every message or just for a...
  • Blog Post: Checking the SIDs in the WindowsClaimSet

    In continuation to my post of SAM vs PP , we concluded that to avoid fractured policy checking we can still check if the user belongs to a particular group by checking the occurence of an SID in the WindowsClaimSet that he submits to the service. One of the problems that I faced to view the SID of...
  • Blog Post: ServiceAuthorizationManager and PrincipalPermission

    You may face a problem when trying to check for Principal permission and demand in the CheckAccessCore of the SerivceAuthorizationManager and you might see a security exception. This is primarily because the threads principal is not set when this demand check in the SAM happens. You can however...
  • Blog Post: Web Hosted Sample with UserNamePassword Supporting Token

    In the Passing a UserName as a supporting token post was pretty much a single console app to demo the basic flow. This sample is a bit more richer and shows a web hosted service that requires the usernameSecurity token. To configure it please create a app vdir in IIS and point the client on that location...
  • Blog Post: Passing a UserName as a supporting token.

    Firstly i would like to thank Brent Schmaltz who helped me solve this problem. When trying to secure messages might require more than than the primary token to identity the client. We can then resort to sending additional information that would help in identitification or some kind of custom processing...
  • Blog Post: Disabling Anonymous Authenticaiton on IIS for Message Security and Impersonation

    When hosting WCF services in IIS we would ideally want to disable anonymous authenticaion on a website when there are other resources or type of endoints being hosted on that site. The solution to this is not quite obvious.The problem basically is that we have a situation where there are double identities...
  • Blog Post: Load Balancing WCF - basicHttpBinding

    Load balancing WCF with basicHttpBinding can be done using the keepAliveEnabled property when there is connection reuse. Basically this property when enabled, enables a client to maintain a persistent connection with the service and gives enhanced throughput with connection reuse with multiple messages...
  • Blog Post: Intalling and Running your STS for Cardspace

    I realized that there were many gotachs when running the sample STS that is posted here . This has evolved and the experience is really improved. Thanks to Garrett . Some steps Download the sample from the site and run the setup script. You might want to check the SSL cert setup if it has...
  • Blog Post: Query Endpoints using WMI Provider

    Basicallyl for administrative purposes we can use the WMI Provider. Firstly we have to enable the WMI Provider in the corresponding service config file. < configuration > < system.serviceModel > < diagnostics wmiProviderEnabled = " true " /> … </ system.serviceModel >...
  • Blog Post: DataContract names for Generic Types

    When generating proxies for Data contracts that are generics types, we see that the hash of the name follows the types to avoid naming collision.To avoid this we can expose a type as follows [ DataContract( Name=" ShapeWithDimensionsIn {0} ) ] public class Shape <T> { } So a type like Shape<float>...
  • Blog Post: DatacontractSerializer and ASMX service using types with Namespaces

    When we try to generate a proxy out of an ASMX service with svcutil, there might be some interesting scenarios. One that I came across is when the service exposes types that have a root namespace. Now if you had only that type as the parameter then these doesnt seem to be any issue. As soon as you mix...
  • Blog Post: WCF Service with .asmx extensions

    We already have quite a large number of ASMX services and clients. One major point to be kept in mind is that WCF and asmx services can co-exist without any problem and migration to WCF should be your first and only choice unless there is a reason like using security that you do not have already. Or...
  • Blog Post: Using a Session in WCF through AspNetCompatibility

    Firstly let us all thank Steve Main . The session/state model is the same that is leveraged by the asp.net framework and hence all the feature of state management comes bundled with it. On a moral note its the responsibility of using this is upto the designers. But there might be applications and...
Page 1 of 2 (39 items) 12