locked
AS2 Synchronous MDN with Orchestration RRS feed

  • Question

  • Hi All,

    I'm working on Biztalk server as2. I want to receive as2 message from my partner and send synchronous mdn to my partner. I know i need to use a two-way receive port and party configuration. Also i know how i can configure party and port.

    But i want to use orchestration. I create a two-way receive port, a receive shape and a send shape. But what should be mdn send shape's message type?

    Any idea?

    Thanks,

    Zeliha
    Thursday, November 12, 2009 5:03 PM

Answers

  • I did it.

    First i create a System.XML.XMLDocument type message and i put a message assignment between receive shape and send shape. Then i wrote this code in message assignment;

    xmlMsg = null;
    xmlMsg.LoadXml("<RespRoot><Resp>NA</Resp></RespRoot>");
    pipelineOut = Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(typeof(as2Deneme.as2Receive), xmlMsg);
    pipelineOut.MoveNext();
    pipelineOut.GetCurrent(xmlMsg);

    xmlMsg is my System.XML.XMLDocument type message. I configure party and receive port for AS2 then it works.

    Thanks,

    Zeliha

    • Marked as answer by zelish Friday, November 13, 2009 12:05 AM
    Friday, November 13, 2009 12:05 AM

All replies

  • You would use Microsoft.XLangs.BaseTypes.Any. A good article on catching synchronous MDNs in an orchestration is found here: http://biztalkhotrod.com/Documents/BizTalk_HotRod_Issue6_Q2_2009.pdf

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Thursday, November 12, 2009 5:27 PM
  • I read this document but still i dont know how i can send mdn message. It include mostly receiving mdn. Pls help
    Thursday, November 12, 2009 6:57 PM
  • I did it.

    First i create a System.XML.XMLDocument type message and i put a message assignment between receive shape and send shape. Then i wrote this code in message assignment;

    xmlMsg = null;
    xmlMsg.LoadXml("<RespRoot><Resp>NA</Resp></RespRoot>");
    pipelineOut = Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(typeof(as2Deneme.as2Receive), xmlMsg);
    pipelineOut.MoveNext();
    pipelineOut.GetCurrent(xmlMsg);

    xmlMsg is my System.XML.XMLDocument type message. I configure party and receive port for AS2 then it works.

    Thanks,

    Zeliha

    • Marked as answer by zelish Friday, November 13, 2009 12:05 AM
    Friday, November 13, 2009 12:05 AM