Modify outgoing WCF message

Home Page Forums BizTalk 2004 – BizTalk 2010 Modify outgoing WCF message

Viewing 2 reply threads
  • Author
    Posts
    • #25271

      Hi. I’m pretty new to this stuff and I would like to know if it is possible, when using a XML template, to  access promoted properties so that they can become elements of the WCF message body?

      Specifically, in the same way we access the biztalk message body (bts-msg-body) are we able to access promoted properties?

    • #25272

      This will depend on where you are when you need to access the properties.  If you’re inside a WCF service that received a message from BizTalk, I don’t believe that context data is carried over.  However, with an orchestration inside BizTalk, you can access the value of promoted properties in an expression shape using the Message(PropertyName) syntax.  You can also use a message assignment to set the value of the properties.

      If you are interested in moving data from context into the message, you may want to look at “Property Demotion”.

      Here’s an article from Stephen Thomas on how to do it:

      https://www.biztalkgurus.com/blogs/biztalk/archive/2004/10/07/Property-Promotion-and-Demotion-in-BizTalk.aspx

      Although the article was written for BTS 2004/2006, it still applies to BTS 2009

    • #50316
      biztalkgurus

        Telling Memories Among Southern Women: Domestic Workers and Their Employers in the Segregated South by Susan Tucker • 9780807127995

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