基于gateway实现odata(4)–查询选项5-value

更详细学习请参看:SAP Press – OData and SAP NetWeaver Gateway

ODATA学习(SAP Press – OData and SAP NetWeaver Gateway)第6.5.7章节,第304页

Instead of accessing the resource via an absolute URI , you can also access
it via the SAP NetWeaver Gateway server by using the $ v a 1 ue option to
get the raw value of the corresponding entry. This requires implementing
the Get_Stream method in the DPC extension class, which has to
return the corresponding stream. This is very beneficial because a consumer
application continues to communicate with the same server (SAP
NetWeaver Gateway) instead of connecting/authenticating with multiple
destinations.

如/sap/opu/odata/sap/ZEXAMPLE1_SRV/ProductCollection(‘HT-1000 ‘)/$value的地址要取到数据,需要重定义/iwbep/if_mgw_appl_s rv_runtime-get_stream 的方法 .其体实现可参看309页.

此部份未做测试,

留下一个回复

你的email不会被公开。