Correlation Issue

Home Page Forums BizTalk 2004 – BizTalk 2010 Correlation Issue

Viewing 1 reply thread
  • Author
    Posts
    • #21827

      Hi All,

      I am facing a problem…

      I have a schema which is provided by a vendor and it has following structure

      <root>/Request ( Cardinality 0 to 1)

      <root>/Response ( Cardinality 0 to 1)

      and it doesnt have a namespace. Now the question is how can i create a correlation set on this kind of schema? correlation is nessasary because it a Async communication with the vendor.

      any help in this regard will be appreciated.

      Thanks,

      Syed Abdullah Akhlaq

    • #21844

      If there is a field that will have the same value both on Request and Response you can promote this field to the same promoted property on the property schema, and then correlate on that.

      • #21849

        well there is a field but the problem is the schema structure is like

        <Root>

            <Request></Request>
            <Response></Response>

        </Root>

        so when i tried to promote the properties it says there is a multiple correlation under same root node.

        • #21856

          You could try splitting this into 3 schemas.

          The first schema is <Root><Any> and will be an envelope with the body xpath set to <Root>.

          Then define separate <Request> and <Response> schemas, promoting the appropriate correlation property.

          Use the XmlDisassembler and Xml Assembler, specifying the envelope schema.
          On incoming messages the disassembler will strip the <Root> from the message, promote the correlation property before passing just the message.
          On outgoing the assembler will add the <Root> node and demote the correlation property.

          • #21863

            yup this is what i have already done and the solution working fine but i was wondering if there is some other solution avaliable for this problem but seems like the way i have build the solution is the only was to solve this problem ….

            Thank you,

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