Geeks With Blogs
Charlie Mott BizTalk
Clean-up BizTalk BizUnit tests only on failure
This article discusses, from a BizTalk\BizUnit perspective, implementing the Channel Purger Enterprise Integration Patten to “keep 'left-over' messages on a channel from disturbing tests.” If one test fails, you may see subsequent tests also fail. This is because service instances triggered from the failed test may still be running in BizTalk. These can then produce results that conflict with the expected results of these following tests. This could include: event log messages; files arriving in ......

Posted On Wednesday, August 8, 2012 10:27 PM

BizTalk Patterns Wiki Page

I’ve published a TechNet wiki page here. This identifies links that show BizTalk implementations of the patterns described in the book Enterprise Integration Patterns.

I look forward to seeing others’ contributions and updates to this wiki page.

Posted On Tuesday, June 19, 2012 3:42 AM

Catching Faults from Dynamics AX 2012 WCF services
Article Source: I hit problems in an orchestration consuming WCF services exposed by Microsoft Dynamics AX 2012 (AX6). When attempting to catch a fault response, I was getting the error "received unexpected message type ' In order to fix this, I needed to change the schema for the fault message in the port type that had been created using "Add Generated Items." I changed it to the SOAP 1.2 fault type. Thanks to this ......

Posted On Monday, April 4, 2011 11:54 AM

Test Categories with BizUnit tests
Article Source: Often it is handy to organise BizUnit tests into test lists. This way longer running tests and edge case tests can be removed from check-in builds keep them running a bit more quickly. However, updating a .vsmdi test lists for each individual test method is time consuming. A better solution is to use the new Category attribute that comes with MSTest in .NET4 (nUnit has supported a categories feature for a while). In the TFS build processes, the ......

Posted On Friday, April 1, 2011 10:06 AM

Business Case for investing time developing Stubs and BizUnit Tests
I was recently in a position where I had to justify why effort should be spent developing Stubbed Integration Tests for BizTalk solutions. These tests are usually developed using the BizUnit framework. I assumed that most seasoned BizTalk developers would consider this best practice. Even though Microsoft suggest use of BizUnit on MSDN, I've not found a single site listing the justifications for investing time writing stubs and BizUnit tests. The industry average of writing unit testing code is around ......

Posted On Tuesday, June 5, 2012 10:28 PM

ESB Toolkit Clients
Article Source: What is the best approach for developing a WCF client application that sends messages to the WCF on-ramps exposed by the BizTalk ESB Toolkit? I had considered various approaches: Generate an xml message from a string template using string replacements. Then submit the message to the ESB endpoint using code similar to the Itinerary Test Client provided with the ESB Toolkit. Then for the response use XPath to get the required data. - This is obviously ......

Posted On Monday, July 25, 2011 10:50 AM

Sending header details in messages to Dynamics AX 2012 WCF services from BizTalk
Article Source: How do you send "Call Context" information in the header message to Dynamics AX 2012 WCF services from BizTalk? One difference between AX 2009 and AX 2012 services, is that you no longer always need to provide destination endpoint context information. This is described here: In previous releases, each AIF endpoint was associated with a specific company. Microsoft Dynamics AX 2012 does not require that you associate integration ports with a specific ......

Posted On Friday, May 6, 2011 4:04 AM

Creating typed WSDL’s for generic WCF services of the ESB Toolkit
source: Update (10/06/2011): I no longer recommend the approach below. It is too much of an administrative nightmare to create a wsdl for each possible service method call. See new advise here: Question How do you make it easy for client systems to consume the generic WCF services exposed by the ESB Toolkit using messages that conform to agreed schemas\contracts? Usually the developer ......

Posted On Monday, December 20, 2010 10:48 AM

BizTalk Map Documenter
Article Source: The "HTML Generator StyleSheet for BizTalk Maps" originally posted by Steve Hart is now on CodePlex. http://biztalkmapdoc.codepl... I have uploaded a new version that includes the following updates (not all of this was developed by me): output of label data. output of constants used. updated table layout. separate tables for each BizTalk page. I've also included details of how this can be run in an MSBuild process ......

Posted On Thursday, July 23, 2009 8:34 AM

Naming Standards for BizUnit Integration Tests
source: Roy Osherove on his blog and in his book gives guidance on the naming of unit test methods. For use with BizUnit end-to-end integration tests, I have extended these recommendations below. Implementing these conventions has the following benefits: Makes it easily to understand the purpose of the test. Make it easier to find specific tests. Gives a visual feel for integration use case test coverage. Hub-and-Spoke Solutions For hub-and-spoke solutions, an ......

Posted On Monday, July 5, 2010 6:45 AM

XSD Validation from BizTalk Orchestrations
Article Source: There are various blog articles that give sample .NET code that can be used to validate a message against a schema from a BizTalk orchestration. These include: msdn,,, and Sujan Turlapaty. Many of these blogs have subsequent comments about problems. Under high loads, I too began to see these classes return “false positives” in my test environment. (i.e. An XmlSchemaValidationException is being thrown ......

Posted On Tuesday, February 16, 2010 4:49 AM

BizTalk Cross Reference Data Management Strategy
Article Source: This article describes an approach to the management of cross reference data for BizTalk. Some articles about the BizTalk Cross Referencing features can be found here: Options Current options to managing this data include: ......

Posted On Sunday, March 14, 2010 12:32 PM

Stub of Dynamics AX for BizTalk Development and BizUnit Testing
Article Source: This article describes our approach to testing BizTalk integration with Dynamics AX 2009. It builds on the "Alternative Bindings" approach as described by Mike Stephenson. Alternative Bindings We are communicating asynchronous with Dynamics. As such, in our developer / unit test bindings, we have replaced use of the AIF Adapter with the MSMQ Adapter. If you are communicating synchronously, you could use the WCF Adapter. Mimic the Dynamics AIF ......

Posted On Wednesday, May 13, 2009 9:26 AM

Value vs. Id Cross Referencing in BizTalk
Article Source: Ever wondered what the differences are between "id" and "value" cross referencing in BizTalk? Functional The functional difference is documented on msdn. ... The cross reference ID methods can be used to establish and lookup the relationship between the IDs used by the two systems. ... the cross reference value methods can be used to translate the value used by one system to the value used by the other system. I had no idea what this meant. So ......

Posted On Monday, April 20, 2009 6:28 PM

Copyright © charlie.mott | Powered by: | Join free