01 Rest 接口去除 DT 头
cc_* -> Parameters -> General -> Output Message Format
02 去除命名空间里的 ns0
在 CC 中添加如下
1 AF_Modules/XMLAnonymizerBean Local Enterprise Bean 02 sap.com/com.sap.aii.adapter.rest.app/RESTAdapterBean Local Enterprise Bean rest0 anonymizer.acceptNamespaces http://www.eascs.com/business_data ''
03 Rest Xml使用MM会有强制的DT名在最前面
在使用Rest接口时,有时候需要传出Xml格式的内容,此时 Message Mapping 不会同Json格式的接口自动去除DT\MT的名,如下红框的内容:
可不使用 Message Mapping 改用 Imported Archive 对此部分进行处理
操作步骤:
- 手写转换规则(同SAP STRANS的方法)
- 将转换规则打包为zip
- 上传转换规则
- 更改
Operation Mapping的Mapping Program的类型为XML - 选择上传的xml转换程序
