Пример #1
0
        public TransformationInstruction(string mapClassName, string mapAssemblyName, TransformationSourceSchemaValidation validateSourceSchema, string callToken)
        {
            this.mapName = string.Format("{0}, {1}", mapClassName, mapAssemblyName);
            this.validateSourceSchema = validateSourceSchema;
            mapType        = ObjectCreator.ResolveType(mapName);
            this.callToken = callToken;

            if (mapType == null)
            {
                throw new Exception("Unable to load map with name - " + mapName);
            }
        }
Пример #2
0
        /// <summary>
        /// Transform a message using the specified map class with the specified level of source schema validation and with property promotion on the target message
        /// </summary>
        public void TransformMessageWithPromotion(string mapClassName, string mapAssemblyName, TransformationSourceSchemaValidation validation)
        {
            SetContextPropertyPipelineInstruction noDebatchInstruction = new SetContextPropertyPipelineInstruction(BizTalkXMLNORMPropertySchemaEnum.PromotePropertiesOnly.ToString(),
                                                                                                                   ContextPropertyNamespaces._XMLNormPropertyNamespace, true, ContextInstructionTypeEnum.Write);

            base.AddInstruction(noDebatchInstruction);

            TransformationInstruction instruction = new TransformationInstruction(mapClassName, mapAssemblyName, validation, CallToken);

            base.AddInstruction(instruction);

            ApplyXmlDisassemblerInstruction promotionInstruction = new ApplyXmlDisassemblerInstruction();

            base.AddInstruction(promotionInstruction);
        }
Пример #3
0
        /// <summary>
        /// Transform a message using the specified map class with the specified level of source schema validation
        /// </summary>
        public void TransformMessage(string mapClassName, string mapAssemblyName, TransformationSourceSchemaValidation validation)
        {
            TransformationInstruction instruction = new TransformationInstruction(mapClassName, mapAssemblyName, validation, CallToken);

            base.AddInstruction(instruction);
        }