WCF Messaging Fundamentals

My latest Service Station column recently hit the Web on the MSDN Magazine site — it’s called WCF Messaging Fundamentalsit covers the ins-and-outs of lower-level WCF message processing.
It starts by explaining the .NET 3.0 updates to System.Xml that allow for multiple byte-level representations of an XML Infoset (text, binary, MTOM) and then explains how WCF builds on that flexible foundation. Then it dives into the Message class, discusses message versions, and various ways to read/write messages. It also covers more advanced topics like message state/lifetime, message headers and properties. Finally, the article describes how messages are ultimately mapped to methods and how you can control all of these message processing details through endpoints and bindings. I hope you find the information useful.

Saving your seat in our next class

We’re trying to make it easier for individual developers to reserve a seat in a specific course offering before they’ve completed the bureaucracy of obtaining payment from above — something that manycustomers have complainedto us about in the past. Often courses fill up to fast pushing them to the waiting list.
So now, when you see a specific course offering that you’re interested in, simply clickSave a Seatand fill out the registration form as usual, only this time you won’t be asked for payment. Then, closer to the course date, a member of oursales team will contact you to confirm attendance/payment. If you check out any of our course pages with upcoming offerings, like this one, you’ll see what I’m talking about.
And if you’d like to receive automatic notification of new courses as soon as they’re scheduled (so you can be first to save a seat), you should subscribe to our course schedule blog.

Framentation in the BTAHL7 Explorer

There is occasionally a time when you get messages that are ‘batched’ together meaning the messages come in like this

MSH

MSH

MSH

….

Or they can come in with the file header and trailer and one or more batch header and trailers like this

FHS (file header segment)

BHS (batch header segment)

MSH

MSH

BTS (batch trailer segment)

BHS

MSH

BTS

FTS (file trailer segment)

When you run the file through BizTalk, the subscription engine does not pick up the message, in looking at the details of the message, it looks like this (notice that ParseError is False):

and the body is unparsed

In the BTAHL7 Configuration Explorer you need to turn fragmentation on

The reason why this is happening is because the pipeline component isexpecting the start block (SB) and end block (EB)to be in the data stream so it knows how to seperate each of the messages, if fragmentation is not turned on and it is getting multiple messages, in the messagebox you will get a block of text,negative ParseError and the inability to transform data, it will only be used for routing purposes.

Hope that this helps explain something that is not quite clear from the documentation, or at least anything that I could find.

Fundamentals of WF

Tomorrow (March 20) I am doing a presentation at the Metro Toronto .Net User Group entitled:
Fundamentals of Windows Workflow Foundation (WF).


Most of it will be demos introducing WF. Of course, I will also include BizTalk in the presentation, discussing the differences and similarities between WF and BizTalk and when it is appropriate to use either technology.


The demos will include:


Creating a Sequential Workflow
Communicating with the Host
Logging Workflows
Persisting Workflows
Creating Custom Activities
Creating a State Machine Workflow
Using WF and BizTalk together


You can sign up for the presentation here:
http://www.metrotorontoug.com/User+Group+Events/379.aspx

TVNZ Ondemand Launches

TVNZ Ondemand Launches

During my presentation yesterday (watch it) I talked about the concept of media convergence…


“Media Convergence is not the reduction of devices but the expansion of channels to content combinations.”


I used TVNZ as an example to demonstrate these changing times.



This morning I received an email from John Ferguson (Production Manager of Interactive) at TVNZ anouncing the launch of their ondemand service.


I worked with John and his team on the great Vista Sidebar gadget that they produced and I’m convinced that this team really gets it!


Now over to ondemand to try it out!


The Long Tail of TV in NZ is with us!


Great work!