Hello World BizTalk project. Gemaakt in BizTalk 2013 en omgezet naar 2016.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Shared.OrderStatus_to_ShipmentStatus.btm.cs 5.2KB

преди 1 месец
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. namespace TM.HelloBizTalk2013World.Transforms {
  2. [Microsoft.XLANGs.BaseTypes.SchemaReference(@"TM.Shared.Schemas.OrderStatus", typeof(global::TM.Shared.Schemas.OrderStatus))]
  3. [Microsoft.XLANGs.BaseTypes.SchemaReference(@"TM.HelloBizTalk2013World.Schemas.ShipmentStatusSchema_TEST", typeof(global::TM.HelloBizTalk2013World.Schemas.ShipmentStatusSchema_TEST))]
  4. public sealed class Shared_OrderStatus_to_ShipmentStatus : global::Microsoft.XLANGs.BaseTypes.TransformBase {
  5. private const string _strMap = @"<xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0""
  6. xmlns:ScriptNS0=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS0""
  7. xmlns:ScriptNS1=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS1""
  8. xmlns:DateTime=""TM.Shared.Components.DateTime""
  9. xmlns:SSO=""TM.Shared.Components.SSO""
  10. xmlns:String=""TM.Shared.Components.String""
  11. xmlns:s0=""http://TM.KLG.com/KLG/OrderStatus""
  12. xmlns:ns0=""TM.HelloBizTalk2013World.Schemas""
  13. exclude-result-prefixes=""s0 ScriptNS0 ScriptNS1 DateTime SSO String"">
  14. <xsl:output omit-xml-declaration=""yes"" method=""xml"" version=""1.0"" indent=""yes"" />
  15. <xsl:variable name=""connectionString"" select=""SSO:GetValue('TM.HelloBizTalk2013World', 'ESBLookupConnectionString2016')""/>
  16. <xsl:template match=""/"">
  17. <xsl:apply-templates select=""/s0:StatusReport"" />
  18. </xsl:template>
  19. <xsl:template match=""/s0:StatusReport"">
  20. <ns0:ShipmentStatus>
  21. <ShipmentStatusReport>
  22. <ShipmentNumber>
  23. <xsl:value-of select=""Status/ShipmentReference""/>
  24. </ShipmentNumber>
  25. <StatusCode>D</StatusCode>
  26. <StatusDateTime>
  27. <xsl:value-of select=""Status/StatusTimeStamp""/>
  28. </StatusDateTime>
  29. <SignedBy />
  30. <Remarks />
  31. </ShipmentStatusReport>
  32. </ns0:ShipmentStatus>
  33. </xsl:template>
  34. </xsl:stylesheet>";
  35. private const int _useXSLTransform = 0;
  36. private const string _strArgList = @"<ExtensionObjects>
  37. <ExtensionObject Namespace=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS0""
  38. AssemblyName=""Microsoft.BizTalk.BaseFunctoids, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35""
  39. ClassName=""Microsoft.BizTalk.BaseFunctoids.FunctoidScripts"" />
  40. <ExtensionObject Namespace=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS1""
  41. AssemblyName=""Microsoft.BizTalk.CrossReferencing, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35""
  42. ClassName=""Microsoft.BizTalk.CrossReferencing.CrossReferencing"" />
  43. <ExtensionObject Namespace=""TM.Shared.Components.DateTime""
  44. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  45. ClassName=""TM.Shared.Components.DateTimeFunctions"" />
  46. <ExtensionObject Namespace=""TM.Shared.Components.KeyList""
  47. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  48. ClassName=""TM.Shared.Components.KeyListFunctions"" />
  49. <ExtensionObject Namespace=""TM.Shared.Components.SSO""
  50. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  51. ClassName=""TM.Shared.Components.SSOFunctions"" />
  52. <ExtensionObject Namespace=""TM.Shared.Components.String""
  53. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  54. ClassName=""TM.Shared.Components.StringFunctions"" />
  55. </ExtensionObjects>";
  56. private const string _strSrcSchemasList0 = @"TM.Shared.Schemas.OrderStatus";
  57. private const global::TM.Shared.Schemas.OrderStatus _srcSchemaTypeReference0 = null;
  58. private const string _strTrgSchemasList0 = @"TM.HelloBizTalk2013World.Schemas.ShipmentStatusSchema_TEST";
  59. private const global::TM.HelloBizTalk2013World.Schemas.ShipmentStatusSchema_TEST _trgSchemaTypeReference0 = null;
  60. public override string XmlContent {
  61. get {
  62. return _strMap;
  63. }
  64. }
  65. public override int UseXSLTransform {
  66. get {
  67. return _useXSLTransform;
  68. }
  69. }
  70. public override string XsltArgumentListContent {
  71. get {
  72. return _strArgList;
  73. }
  74. }
  75. public override string[] SourceSchemas {
  76. get {
  77. string[] _SrcSchemas = new string [1];
  78. _SrcSchemas[0] = @"TM.Shared.Schemas.OrderStatus";
  79. return _SrcSchemas;
  80. }
  81. }
  82. public override string[] TargetSchemas {
  83. get {
  84. string[] _TrgSchemas = new string [1];
  85. _TrgSchemas[0] = @"TM.HelloBizTalk2013World.Schemas.ShipmentStatusSchema_TEST";
  86. return _TrgSchemas;
  87. }
  88. }
  89. }
  90. }