FarPoint Spread for BizTalk Server 2006

If you’ve ever wanted or needed to parse Excel files using BizTalk, you can now. Some time ago FarPoint released a pipeline dissassembler component for BizTalk Server 2006 which is able to convert Excel files into XML. From their website:

Spread for BizTalk Server 2006 provides a complete solution for integrating Microsoft Excel data seamlessly into your BizTalk applications.

Spread includes a pipeline disassembler that parses Excel data (XLS, Excel 2007 XML, CSV, TXT) into XML, and a pipeline assembler that creates Excel (XLS, Excel 2007 XML) and PDF documents from XML data in BizTalk Applications.

Read more about Spread, download a trial or obtain a license here.

Map xs:string to xs:datetime

Remember that situation where you needed to convert a string representation of a DateTime to a valid DataTime using the BizTalk mapper? No? Well, I do. The parsing of the string as a DateTime is not the real problem here. Once you know how the string is formatted it is simply writing a way to parse it, either using substrings or using the DateTime.Parse method. Once you have a DateTime though, you need to format it to be valid according to the XSD spec. That’s exactly where DateTimes and the BizTalk mapper can give you a headache. Especially when you’re dealing with different locales under which BizTalk is running this can be quite cumbersome. There is however a good way of converting a string to a valid datetime and I’ll show you how in the following code sample:

// We'll be using the W3cXsd2001class from the Metadata namespace
using System.Runtime.Remoting.Metadata;

// Parse a string as a DateTime. This could be a string coming
// from the source message.
DateTime myDateTime = DateTime.Parse("07/01/2008");

// This method returns the current DateTime into a xs:DateTime
string dateTimeString = W3cXsd2001.SoapDateTime.ToString( myDateTime );

Happy coding :)

Ext JS

Although I rarely develop front-end applications, let alone web applications, during my day-to-day job, I’m still practicing the skill in my personal time. Before my interests in application integration started to arise I was very much intrigued by all what is currently known as web 2.0 and Ajax. In the time we would simply call it DHTML, but that term was superseded by the more catchy ones.

So if I see someting passing by that really looks cool and is built using simply Javascript and HTML I always take a quick look at it. This time I was following an e-mail thread on Ajax libraries until Ext JS was suggested. As I’d never heard of it, I went out and looked at the samples. And I must say I’m really impressed with the style, smoothness and functionality of the library. Now I only have to check out how to incorporate this with .Net.

Please do check out the samples at http://extjs.com/deploy/dev/examples/samples.html.