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

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.

主站蜘蛛池模板: 南召县| 龙里县| 哈密市| 信阳市| 靖远县| 龙江县| 岳阳县| 喀什市| 凤山市| 樟树市| 河池市| 车致| 门源| 甘肃省| 尤溪县| 菏泽市| 汽车| 凌海市| 乌海市| 普陀区| 华坪县| 马龙县| 石林| 阿克苏市| 楚雄市| 大关县| 三明市| 兴安盟| 毕节市| 沛县| 天水市| 沂源县| 盈江县| 东宁县| 青川县| 星子县| 来宾市| 奎屯市| 抚宁县| 黎平县| 嘉义市|