Gateway Notes (1)

本文探讨了OData标准及其在SAP Gateway中的应用,分析了Gateway的开发策略、数据模型创建、服务消费方式,并解释了REST和RESTful概念。深入介绍了HTTP协议如何支撑RESTful系统。

1. Link with OData

OData: developed by Microsoft, is an extension to the Atom Publishing and Atom Syndication standards based on XML & HTTP(S).

More importantly, it is free.

And it is also extensible, which provides the possibility for SAP to build the Gateway based on this idea.

2. Development strategy in Gateway

  • (Recommended) IW_BEP installed on business suite backend. And most of the developments take place on backend system.
  • Gateway Generator Tool is required for quick prototyping. (Developments on Gateway)
  • No add-ons on backend, so most of the custom development took place on Gateway system.
  • Gateway within backend. All the stuff will be in one box. (limitation: external access not recommended)

3. Gateway Data Models

Created based on RFM or BOR objects.

Use transaction "/IWFND/GWO_GEN" to map the service and the data model.

4. Consuming Gateway services

Quite flexible because OData is very easy to adapt to. No matter which language just make sure XML is able to be processed.

5. REST and RESTful

REST - Representational State Transfer is Design Concept which defines six architectural constraints.

Any software system (should contain more than 2 entries) that conforms to the constraints of REST, is RESTful.

WWW is the most prominent example of RESTful system.

6. Architectural constraints of REST

1) Client-Server model

2) Layered (client cannot distinguish if the source is the server or proxy)

3) Stateless

4) Uniform

5) Cacheable

6) Code-on-demand (JavaScript is the example)

7. HTTP, a protocol that drives the WWW.

clip_image001

It implements all the mentioned actions that RESTful system should have.

转载于:https://www.cnblogs.com/rabbitzhang/archive/2012/05/10/2494782.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值