Http error 405 when calling STS

יום ראשון, מרץ 18, 2012

I wrote a simple example for demonstrating delegation with Windows Identity Framework (WIF). I created a simple web site that used a simple custom STS for authentication. The web site called another web service to calculate a simple calculation (calculator). The web site used passive federation using a simple asp.net STS. SOAP Web service in general can only use passive federation for authentication, so I created another WCF custom STS. The idea was that the web application will obtain an act-as token from the active STS using the token it received from the...
tags: , ,
9 comments

Convert SAML token to SWT token using ACS

יום רביעי, נובמבר 16, 2011

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.Net web sites as well as in SOAP WCF services but for REST web services...
no comments

WCF Advantages

יום שלישי, אוקטובר 27, 2009

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 introduce the following...
tags:
no comments

Reading ETW tracing using Event Viewer

יום שני, אוקטובר 12, 2009

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...
tags: ,
one comment

Data Contract topology in WCF 4.0 – DataContractResolver

יום ראשון, אוקטובר 11, 2009

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 or attributes to define the list of possible substitutions. (in code or config) Unfortunately, WCF 3.x doesn’t provide an easy way to override the type-mapping algorithm used by DataContractSerializer when performing this type of dynamic type...
tags: , ,
one comment

Reporting and SOA

יום רביעי, אוקטובר 7, 2009

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 reporting engine connected strait to the database. Simple and efficient...
tags: ,
no comments

How to flatten your WCF WSDL

יום שני, מרץ 30, 2009

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    
tags:
no comments

The Story of WCF invocation on IIS

יום שישי, אפריל 11, 2008

  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 virtualPath ), which is what eventually calls ServiceHost.Open(). The logic for ESA does the following:   1) First, look up the virtual path...
tags:
2 comments

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 endpoints imperatively, or twiddling knobs on Behaviors) prior to  opening the service.   In the self-host world, you can get away without creating a custom ServiceHost...
tags:
no comments

Spliting WCF config files

יום חמישי, מרץ 6, 2008

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 (development, test, or production), or  you need granular control over permissions. Unfortunately, the system.serviceModel section group does not support this attribute. If you try to add it, you will receive the following...
tags: ,
8 comments