none
how to construct a untyped message in biztalk?

    Question

  • Hi All,

    I want to construct  a untyped message in biztalk , how can i do that.

    My scenario is

    1)  i want receive a untyped message  to rcv shape, here i take a msg (untyped_msg, type : system.xml.xmldocument)

    2) i want to construct a new message form untyped_msg to other msg("send_msg" Type: schema1)  in "construct shape".

    3) send"Send_msg to send location.

    how to achieve this feat, looking of help


    Sunday, September 24, 2017 6:52 AM

All replies

  • Use passthrough pipelines and subscribe on receive port name

    What is the business requirement in this case, maybe you can handle this in a better way

    EDIT: Or you can use an "any" schema
    https://www.w3schools.com/xml/schema_complex_any.asp

    /Peter


    • Edited by Peter Lykkegaard Sunday, September 24, 2017 1:14 PM added any schema option
    Sunday, September 24, 2017 10:32 AM
  • Hi,

    Why do you require the untyped message at the first place, can you share your business requirement with us?


    Mandar Dharmadhikari

    Monday, September 25, 2017 5:01 AM
    Moderator
  • Hi Biztalk.user,

    1) You need to use receive passthrough pipeline & send passthrough pipleline.

    2) create a message(untypedMessage) and select type system.xml.xmldocument.

    3) create a xml based on your required schema in expression shape.

    4) assign that created xml to earlier created message by untypedMessage.load(your created xml).

    5) use send shape and select untypedMessage to send.


    Regards

    Abhay Giri

    Mark this reply as answered or vote if this help you.

    Monday, September 25, 2017 6:08 AM
  • Hi Abhay,

    Thanks for reply , can you share any reference example.

    Monday, September 25, 2017 8:05 AM
  • Can we ask why you're trying to do this?  Knowing why you're trying something, not just what you're trying, does help us give the best advice.

    Having said that, there's nothing special about 'creating' an untyped message...it's just uses the XmlDocument type which in BizTalk apps, is treated as 'untyped'.

    Monday, September 25, 2017 1:13 PM
    Moderator
  • Hi,

    May be the below links can help you :

    https://www.codeproject.com/Articles/13277/Configuring-BizTalk-Orchestrations-to-handle-un-ty


    Regards

    Abhay Giri

    Mark this reply as answered or vote if this help you.

    Wednesday, September 27, 2017 7:10 AM
  • Hi,

    1) First you have to create schema(SourceMsg) to extract message from xml.Document (untyped msg)

    3) Assign untyped message to Sourcemsg in message assignment shape ( Sourcemsg = untypedMsg)

    4)In transform shape you can transform source msg to Other msg

    5) send Other Msg to send port.


    Wednesday, September 27, 2017 9:09 AM