Example #1
0
 public XmlRegularPipeline()
 {
     Microsoft.BizTalk.PipelineOM.Stage stage = this.AddStage(Microsoft.BizTalk.PipelineOM.Stage.Decoder, Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp0 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.FailedMessageRoutingEnablerComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp0.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp0)).Load(new Microsoft.BizTalk.PipelineOM.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineOM.PropertyContents[] {
             new Microsoft.BizTalk.PipelineOM.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("EnableFailedMessageRouting", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("SuppressRoutingFailureReport", false)
         })), 0);
     }
     this.AddComponent(stage, comp0);
     stage = this.AddStage(Microsoft.BizTalk.PipelineOM.Stage.DisassemblingParser, Microsoft.BizTalk.PipelineOM.ExecutionMode.firstRecognized);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp1 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Microsoft.BizTalk.Component.XmlDasmComp, Microsoft.BizTalk.Pipeline.Components, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35");
     if (comp1.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp1)).Load(new Microsoft.BizTalk.PipelineOM.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineOM.PropertyContents[] {
             new Microsoft.BizTalk.PipelineOM.PropertyContents("EnvelopeSpecNames", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("EnvelopeSpecTargetNamespaces", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("DocumentSpecNames", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("DocumentSpecTargetNamespaces", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("AllowUnrecognizedMessage", false),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("ValidateDocument", false),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("RecoverableInterchangeProcessing", false),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("HiddenProperties", "EnvelopeSpecTargetNamespaces,DocumentSpecTargetNamespaces"),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("DtdProcessing", "")
         })), 0);
     }
     this.AddComponent(stage, comp1);
 }
Example #2
0
 public XmlTransmit()
 {
     Microsoft.BizTalk.PipelineOM.Stage stage = this.AddStage(new System.Guid("9d0e4101-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp0 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.FailedMessageRoutingEnablerComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp0.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp0)).Load(new Microsoft.BizTalk.PipelineEditor.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineEditor.PropertyContents[] {
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("EnableFailedMessageRouting", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("SuppressRoutingFailureReport", true)
         })), 0);
     }
     this.AddComponent(stage, comp0);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp1 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.MicroPipelineComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp1.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp1)).Load(new Microsoft.BizTalk.PipelineEditor.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineEditor.PropertyContents[] {
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Components", "")
         })), 0);
     }
     this.AddComponent(stage, comp1);
     stage = this.AddStage(new System.Guid("9d0e4107-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp2 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Microsoft.BizTalk.Component.XmlAsmComp, Microsoft.BizTalk.Pipeline.Components, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35");
     if (comp2.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp2)).Load(new Microsoft.BizTalk.PipelineEditor.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineEditor.PropertyContents[] {
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("EnvelopeDocSpecNames", ""),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("EnvelopeSpecTargetNamespaces", ""),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("DocumentSpecNames", ""),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("DocumentSpecTargetNamespaces", ""),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("XmlAsmProcessingInstructions", ""),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("ProcessingInstructionsOptions", Microsoft.BizTalk.Component.XmlAsmComp.ProcessingInstructionsOptions.Append),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("ProcessingInstructionsScope", Microsoft.BizTalk.Component.XmlAsmComp.ProcessingInstructionsScopes.Document),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("AddXmlDeclaration", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("TargetCharset", ""),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("TargetCodePage", 0),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("PreserveBom", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("HiddenProperties", "EnvelopeSpecTargetNamespaces,DocumentSpecTargetNamespaces,TargetCodePage")
         })), 0);
     }
     this.AddComponent(stage, comp2);
     stage = this.AddStage(new System.Guid("9d0e4108-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp3 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.MicroPipelineComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp3.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp3)).Load(new Microsoft.BizTalk.PipelineEditor.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineEditor.PropertyContents[] {
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Components", "")
         })), 0);
     }
     this.AddComponent(stage, comp3);
 }
Example #3
0
 public XmlMicroPipeline()
 {
     Microsoft.BizTalk.PipelineOM.Stage stage = this.AddStage(Microsoft.BizTalk.PipelineOM.Stage.Any, Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp0 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.FailedMessageRoutingEnablerComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp0.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp0)).Load(new Microsoft.BizTalk.PipelineOM.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineOM.PropertyContents[] {
             new Microsoft.BizTalk.PipelineOM.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("EnableFailedMessageRouting", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("SuppressRoutingFailureReport", false)
         })), 0);
     }
     this.AddComponent(stage, comp0);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp1 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.MicroPipelineComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp1.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp1)).Load(new Microsoft.BizTalk.PipelineOM.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineOM.PropertyContents[] {
             new Microsoft.BizTalk.PipelineOM.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("Components", "<mComponents><mComponent name='Be.Stateless.BizTalk.MicroComponent.ContextPropertyExtractor, Be.Stateless.BizTalk.Pipeline.MicroComponents, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14'><Extractors><s0:Properties xmlns:s0='urn:schemas.stateless.be:biztalk:annotations:2013:01' xmlns:s1='urn:schemas.stateless.be:biztalk:properties:system:2012:04'><s1:MapTypeName mode='promote' xpath='/letter/*/from' /><s1:MessageType xpath='/letter/*/paragraph' /></s0:Properties></Extractors></mComponent></mComponents>")
         })), 0);
     }
     this.AddComponent(stage, comp1);
     stage = this.AddStage(Microsoft.BizTalk.PipelineOM.Stage.AssemblingSerializer, Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp2 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Microsoft.BizTalk.Component.XmlAsmComp, Microsoft.BizTalk.Pipeline.Components, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35");
     if (comp2.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp2)).Load(new Microsoft.BizTalk.PipelineOM.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineOM.PropertyContents[] {
             new Microsoft.BizTalk.PipelineOM.PropertyContents("EnvelopeDocSpecNames", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("EnvelopeSpecTargetNamespaces", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("DocumentSpecNames", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("DocumentSpecTargetNamespaces", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("XmlAsmProcessingInstructions", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("ProcessingInstructionsOptions", Microsoft.BizTalk.Component.XmlAsmComp.ProcessingInstructionsOptions.Append),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("ProcessingInstructionsScope", Microsoft.BizTalk.Component.XmlAsmComp.ProcessingInstructionsScopes.Document),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("AddXmlDeclaration", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("TargetCharset", ""),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("TargetCodePage", 0),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("PreserveBom", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("HiddenProperties", "EnvelopeSpecTargetNamespaces,DocumentSpecTargetNamespaces,TargetCodePage")
         })), 0);
     }
     this.AddComponent(stage, comp2);
     stage = this.AddStage(Microsoft.BizTalk.PipelineOM.Stage.Encoder, Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp3 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.MicroPipelineComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp3.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp3)).Load(new Microsoft.BizTalk.PipelineOM.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineOM.PropertyContents[] {
             new Microsoft.BizTalk.PipelineOM.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineOM.PropertyContents("Components", "")
         })), 0);
     }
     this.AddComponent(stage, comp3);
 }
Example #4
0
        public static Microsoft.BizTalk.Message.Interop.IBaseMessage Test_FF_Assembler_Pipeline <T1>(Microsoft.BizTalk.Message.Interop.IBaseMessage iBaseMsg)
        {
            Microsoft.BizTalk.Component.Interop.IBaseComponent comp = PTL.Simple.Assembler
                                                                      .FlatFile()
                                                                      .WithDocumentSpec <T1>().End();

            PTL.SendPipelineWrapper pipeline = PTL.Simple.Pipelines.Send()
                                               .WithAssembler(comp)
                                               .WithSpec <T1>();
            // Execute the send pipeline
            Microsoft.BizTalk.Message.Interop.IBaseMessage outputMessage = pipeline.Execute(iBaseMsg);

            return(outputMessage);
        }
Example #5
0
        public static PTL.MessageCollection Test_FF_Disassembler_Pipeline <T1>(Microsoft.BizTalk.Message.Interop.IBaseMessage iBaseMsg)
        {
            Microsoft.BizTalk.Component.Interop.IBaseComponent comp = PTL.Simple.Disassembler
                                                                      .FlatFile().WithValidation(false)
                                                                      .WithDocumentSpec <T1>().End();

            PTL.ReceivePipelineWrapper pipeline = PTL.Simple.Pipelines.Receive()
                                                  .WithDisassembler(comp)
                                                  .WithSpec <T1>();

            // Execute the send pipeline
            PTL.MessageCollection outputMessage = pipeline.Execute(iBaseMsg);

            return(outputMessage);
        }
 public PassThruTransmit()
 {
     Microsoft.BizTalk.PipelineOM.Stage stage = this.AddStage(new System.Guid("9d0e4101-4cce-4536-83fa-4a5040674ad6"), Microsoft.BizTalk.PipelineOM.ExecutionMode.all);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp0 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.FailedMessageRoutingEnablerComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp0.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp0)).Load(new Microsoft.BizTalk.PipelineEditor.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineEditor.PropertyContents[] {
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("EnableFailedMessageRouting", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("SuppressRoutingFailureReport", true)
         })), 0);
     }
     this.AddComponent(stage, comp0);
     Microsoft.BizTalk.Component.Interop.IBaseComponent comp1 = Microsoft.BizTalk.PipelineOM.PipelineManager.CreateComponent("Be.Stateless.BizTalk.Component.MicroPipelineComponent, Be.Stateless.BizTalk.Pipeline.Components, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3707daa0b119fc14");
     if (comp1.GetType().IsInstanceOfType(typeof(Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)))
     {
         ((Microsoft.BizTalk.Component.Interop.IPersistPropertyBag)(comp1)).Load(new Microsoft.BizTalk.PipelineEditor.PropertyBag(new System.Collections.ArrayList(new Microsoft.BizTalk.PipelineEditor.PropertyContents[] {
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Enabled", true),
             new Microsoft.BizTalk.PipelineEditor.PropertyContents("Components", "")
         })), 0);
     }
     this.AddComponent(stage, comp1);
 }