XSLT或名称空间更改的适配器Bean

2020-09-30 04:02发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我有一个看起来像这样的传入XML。

http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:pay =" urn:ean.ucc:pay:2" xmlns:eanucc =" urn:ean.ucc:2" xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation =" http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/InvoiceProxy.xsd">

我要做的就是在进入映射之前更改以下内容。

xmlns:sh =" http://www.unece.org/ cefact/namespaces/StandardBusinessDocumentHeader "

进入

xmlns:sh =" http://www.unece.org/ cefact/namespaces/SBDH "

您是否可以让我知道XSL,以便我可以将其放在预映射中或作为适配器模块,以便在频道接收时将其替换。

致谢

山姆

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我有一个看起来像这样的传入XML。

http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:pay =" urn:ean.ucc:pay:2" xmlns:eanucc =" urn:ean.ucc:2" xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation =" http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/InvoiceProxy.xsd">

我要做的就是在进入映射之前更改以下内容。

xmlns:sh =" http://www.unece.org/ cefact/namespaces/StandardBusinessDocumentHeader "

进入

xmlns:sh =" http://www.unece.org/ cefact/namespaces/SBDH "

您是否可以让我知道XSL,以便我可以将其放在预映射中或作为适配器模块,以便在频道接收时将其替换。

致谢

山姆

付费偷看设置
发送
2条回答
lukcy2020
1楼-- · 2020-09-30 04:43

山姆你好,

您可以在下面的讨论中使用XSLT代码

https://archive.sap.com/discussions/thread/3543339

宇峰Kouji
2楼-- · 2020-09-30 04:41

请找到我正在使用的代码。 我没有得到子元素sh:StandardBusinessDocumentHeader。 http://www.w3.org/1999/XSL/Transform"> http://www.unece.org/cefact/namespaces/SBDH" xmlns:pay =" urn:ean.ucc:pay:2" xmlns:eanucc =" urn:ean.ucc:2" xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation =" http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/InvoiceProxy.xsd">

你好

我尝试过,命名空间变得很好。 但是子元素不会出现。 请找到我的代码。

我可以得到子元素eanucc:message,但是sh:StandardBusinessDocumentHeader之前的那个没有来。

http://www.w3.org/1999/XSL/Transform"> http://www.unece.org/cefact/namespaces/SBDH" xmlns:pay =" urn:ean.ucc:pay:2" xmlns:eanucc =" urn:ean.ucc:2" xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation =" http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/InvoiceProxy.xsd">

一周热门 更多>