官术网_书友最值得收藏!

Introduction

With OData services established, it is also quite important to find a simple and efficient means to consume the data from services. Since OData protocol is based on web standards such as HTTP, XML, and JSON, it is quite convenient for various programming platforms to build client applications that can consume OData services. For example, you can simply launch a web browser to explore an OData service, which will return data in the AtomPub format; you can also use the .NET WebRequest class to communicate with an OData service via a raw HTTP request/response. In more complicated situations, we can use the OData client SDK or GUI tools (such as the WCF Data Service client library and Visual Studio IDE) to generate a strong-typed client proxy to access OData service.

In this chapter, we will cover several cases of accessing OData services in client applications. We will start with some very basic OData client access approaches such as using a web browser, strong-typed client proxy classes, and raw WebRequest class. Then, we will dig into some more detailed OData client access scenarios such as editing and updating OData entity sets, asynchronous OData programming pattern, using built-in OData query options and server-side paged entity sets manipulation. In addition, some more complicated OData access cases such as consuming OData in Gzip compressed format, accessing an OData service in unmanaged clients are also covered at the end of this chapter.

主站蜘蛛池模板: 四平市| 新平| 五大连池市| 巴彦县| 安义县| 铁岭市| 色达县| 丰顺县| 响水县| 彩票| 梁河县| 临沂市| 宁夏| 商洛市| 吴堡县| 肃宁县| 霍邱县| 张家界市| 鄱阳县| 旺苍县| 陵水| 临汾市| 淮滨县| 六枝特区| 满洲里市| 黔西县| 定边县| 托克逊县| 兴化市| 洮南市| 来安县| 常宁市| 崇文区| 盈江县| 华亭县| 南华县| 渭源县| 报价| 阿荣旗| 东山县| 嵊州市|