代码之家  ›  专栏  ›  技术社区  ›  SteveC

BizTalk测试映射具有多个输入xml,还是内联C#是问题所在?

  •  1
  • SteveC  · 技术社区  · 17 年前

    blog 为了测试我的映射,但我刚刚尝试了我的第一个多输入映射,它失败了:-(

    <ns0:Root xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003/aggschema">
      <InputMessagePart_0>
        ...
      </InputMessagePart_0>
      <InputMessagePart_1>
        ...
      </InputMessagePart_1>
    </ns0:Root>
    

    // This is the BizTalk Server 2006 way of calling 
    mapInstance.StreamingTransform.Transform(inputStream, 
        mapInstance.TransformArgs, outputStream, resolver);
    // This is the R2 way of calling
    XmlReader xmlRdr = new XmlTextReader(inputStream);
    mapInstance.StreamingTransform.ScalableTransform(xmlRdr, 
        mapInstance.TransformArgs, outputStream, 
        resolver, whitespaceCorrect);
    

    XPathDocument doc = new XPathDocument(inputStream);
    mapInstance.Transform.Transform(doc, mapInstance.TransformArgs, outputStream);
    
    1 回复  |  直到 3 年前
        1
  •  1
  •   SteveC    13 年前

    你试过这个吗:

    mapInstance.Transform.Transform(
       multi-part input message filepath, out put file path);
    

    mapInstance Map TestableMapBase