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); } }
/// <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); }
/// <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); }