Contents tagged with SOA
In my last post I talked about how to register dynamically (at runtime) a WCF instance without the need to have an existing .svc file or something in the configuration file (<serviceHostingEnvironment><serviceActivations>).
At the PDC 09 Microsoft announced the Release to Manufacturing (RTM) of the Windows Identity Foundation, previously known as "Geneva", "Zermatt" before that, and "IDFX" before that.
Grab the latest bytes from http://msdn.microsoft.com/en-us/evalcenter/dd440951.aspx
Andres G Vettori, VMBC, CTO
Figure 2. ServiceDescription at runtime
The Service Description is the heart of the service and is created when a ServiceHost or client ChannelFactory is created to describe all aspects of the service, endpoints and behaviors. This description is a logical view of what the WCF runtime is going to build when the Open method on the ServiceHost is executed, and also is used to generate the WSDL and policy metadata for the service. This metadata is exposed through the ServiceDescription class and the Description property on the ServiceHost and can be changed, for example, by injecting behaviors. To build the ServiceDescription information the WCF runtime first reflects over the service types and then it loads the service configuration. This information is then used when you execute the Open method of the ServiceHost to build the runtime.
In the code shown below you can see how the service description information could be accessed and modified:
// Construct the ServiceHost
ServiceHost host = new ServiceHost(typeof(EchoService), new Uri(“http://localhost/echo”) );
// Add endpoints to description
host.AddServiceEndpoint(typeof(IEchoService), new BasicHttpBinding(), “”);
// You can access the Description property of the host
// And you can change things before calling Open
foreach( ServiceEndpoint endpoint in host.Description.Endpoints )
// Add My behavior to all Http endpoints
If( endpoint.Uri.Scheme == “http” )
endpoint.Behaviors.Add( new MyHttpBehavior() );
// Open the Host
Next post: Building a Custom ServiceHost
Andrés G Vettori
EDS Top Gun - .NET Capability Architect
Leader of the C# Community of the Microsoft Users Group Argentina
What we have in WCF
I have written a white paper on WCF extensibility and I would like to share it with the community so I have attached a copy to this post in Word 2003 format.
Well, as i have commented before i have been working in a WS-ReliableMesasging for quite some time. We have made all needed tests and tweaks and the code is now ready to ship.
Aaron Skonard has done his WSE 3.0 Wishlist here, and i also have my own:
Well, our new messaging subsystem has reached "Release Candidate" status. After some initial stress and stability testing we have a messaging subsystem that is far superior to what we have in production now, and we have some more work to do yet.
Well, i'm currently working on Venezuela, participating in the implementation of the solution we have been working for more that two years. This isn't our first implementation so everything went very smooth for us, so smooth that we are going to take a mini-vacations to Isla Margarita for two days!
Well, as for today we have a working implementation of WS-ReliableMessaging for our messaging subsystem.