简体   繁体   English

BizTalk 2020 Saxon XSLT 3.0 转换异常

[英]BizTalk 2020 Saxon XSLT 3.0 Transformation exception

I am trying to work on a Proof of concept to run the BizTalk map using saxon xslt 3.0 There is a method where we can use custom extensions (xml) Extension objects to execute a method.我正在尝试进行概念验证以使用 saxon xslt 3.0 运行 BizTalk 地图有一种方法,我们可以使用自定义扩展 (xml) 扩展对象来执行方法。

I am following this link but getting an error when performing TestMap我正在关注此链接,但在执行TestMap时出现错误

Invalid extension class Test.TestMethod for Saxon transform, it should be type of "ExtensionFunction" or "ExtensionFunctionDefinition"撒克逊变换的扩展类 Test.TestMethod 无效,它应该是“ExtensionFunction”或“ExtensionFunctionDefinition”类型

BizTalk Server 2020: A review of the new XSLT 3.0 & Custom Transform Features: Custom Engine Options (social.technet.microsoft.com) BizTalk Server 2020:新 XSLT 3.0 和自定义转换功能回顾:自定义引擎选项(social.technet.microsoft.com)

Custom Extension xml自定义扩展xml

<ExtensionObjects>
<ExtensionObject Namespace="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0" AssemblyName="Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=11f992b93de945f2,processorArchitecture=MSIL" ClassName="Test.TestMethod" /></ExtensionObjects>

Anything is missing in the custom extension xml file?自定义扩展 xml 文件中缺少任何内容吗? I am not sure what is wrong here.我不确定这里有什么问题。

Note: I get the same error at run time after deploying the application in BizTalk 2020注意:在 BizTalk 2020 中部署应用程序后,我在运行时遇到相同的错误

don't need to add Extension Object.不需要添加扩展对象。 Test maps and run works with saxon xslt 3.0, but you are not able to debug xslt from VS.测试地图并运行 saxon xslt 3.0,但您无法从 VS 调试 xslt。

Follow this operation:按照这个操作:

  1. Go to c:\\Program Files (x86)\\Microsoft BizTalk Server\\Developer Tools\\CustomTransform.xml转到c:\\Program Files (x86)\\Microsoft BizTalk Server\\Developer Tools\\CustomTransform.xml
  2. Copy the value of TypeAssemblyQualifiedName复制TypeAssemblyQualifiedName的值
  3. Open regedit.exe and create a string value "XsltEngine" in the follow registry:打开 regedit.exe 并在以下注册表中创建字符串值“XsltEngine”:
  • 64 bit host instances: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\BizTalk Server\\3.0\\Configuration 64 位主机实例: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\BizTalk Server\\3.0\\Configuration
  • 32 bit host instances: HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\BizTalk Server\\3.0\\Configuration 32位主机实例: HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\BizTalk Server\\3.0\\Configuration
  1. Paste the value of TypeAssemblyQualifiedName as the value粘贴TypeAssemblyQualifiedName的值作为值
  2. Restart your server重启你的服务器

如果您仍然需要这方面的帮助,请在 MSDN Q&A Logic Apps 论坛上发布请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM