“Body schema is missing” (2)

Filed under BPI
Tagged as , ,

In my last post I blogged about this message. After fixing the input files, I still received this message. After some digging I noticed that the MessageType was empty (from ‘http://schemas.microsoft.com/BizTalk/2003/system-properties’). This field is used by the pipeline component BTAHL7 2.X Assembler. This field is not promoted because I’m using a generic Orchestration for routing HL7 messages via the ESB Itinerary to the MLLP Adapter (see earlier post about using a static port in an ESB Itinerary). In this Orchestration I’m receiving and sending System.Xml.XmlDocument for the message header, body and z-segment (MultiPart message). It is also not possible to write in this MessageType property, because it is read-only (in an Orchestration).

After the Orchestration the message is routed to a send pipeline and there I found another context property I can use: DocSpecType in ‘http://HL7Schemas.HeaderPropertySchema’:

image

I created a custom pipeline component for setting the MessageType property and setting this value:

image

This component is used as early as possible:

image

By creating the properties I can reuse this component in the future.

  • Share/Bookmark

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*