Converting passthru xmldoc msg to type

Home Page Forums BizTalk 2004 – BizTalk 2010 Converting passthru xmldoc msg to type

Viewing 1 reply thread
  • Author
    Posts
    • #17010

      I am trying to clean up how I handle a mix of defined and unknown msgs.  Right now I use the pass-thru pipeline to a XmlDoc message.  The MessageType property allows me to route unknown messages to an error handling orchestration.  I would like to process the known messages more automatically but cannot get the messagebox to resolve messagetype for XmlDoc.

      Now I am switching on each known messagetype, creating a message of that type from the generic input XmlDoc and sending that to the MessageBox.  I would think I could call the XMLReceive pipeline to create/validate a message, but cannot figure out how to get a typed message out.  GetCurrent(…) retrieves the output, presumably with proper promotions, but how do I send it directly to the MB.  Retrieving it as an XmlDoc and sending that to the MB does not seem to be me anywhere.

       

      Any help or direction?

      Doug

       

       

    • #17036

      Sorry, you lost me a bit.  Are you calling the pipeline inside your Orchestration?  If so, I don’t think that will work since Message Type is demoted when you send out the message from the Orchestration.

       

      You can always cast the message from an Xml Doc to a typed message… I did that in one of my BizTalk 2004 untyped message samples.  I think it was this one: http://www.biztalkgurus.com/Samples/Untyped-Documents-Promoted-Orchestration.html

       

      Have you tried the Xml Receive Pipeline but set the Allowed Unrecognized Message = True?  I think that still promotes Message Type.

      • #17048

        I will play with the allowed Unrecognized message property and see if that helps.

        What I would really like is an 'only unrecognized message' filter.. sort of a trash collector.

        Doug

         

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.