访问架构
上次修改时间: 2010年4月7日
适用范围: SharePoint Server 2010
本主题提供的示例演示如何访问和查看 Excel Services 中 REST 服务的架构。本主题假定您已阅读Excel Services REST API 的 URI 示例。
查看架构
在浏览器地址栏中,使用 URI 键入 Atom XML 源的 URI,如下所示:
http://myserver/_vti_bin/ExcelRest.aspx/Docs/Documents/sampleWorkbook.xlsx/model/Ranges('Sheet1!A1|H3')?$format=atom
右键单击网页,然后单击"查看源文件"。
应显示类似以下示例的架构:
<?xml version="1.0" encoding="utf-8"?>
<entry xml:base="http://excel.live.com/REST" xmlns:x="https://schemas.microsoft.com/office/2008/07/excelservices/rest" xmlns:d="https://schemas.microsoft.com/ado/2007/08/dataservice" xmlns:m="https://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<title type="text">Sheet1!A1:H3</title>
<id>http://myserver/_vti_bin/ExcelRest.aspx/Docs/Documents/sampleWorkbook.xlsx/model/Ranges('Sheet1!A1%7CH3')</id>
<updated>2009-06-25T00:41:37Z</updated>
<author>
<name />
</author>
<link rel="self" href="http://myserver/_vti_bin/ExcelRest.aspx/Docs/Documents/sampleWorkbook.xlsx/model/Ranges('Sheet1!A1%7CH3')?$format=atom" title="Sheet1!A1:H3" />
<category term="ExcelServices.Range" scheme="https://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/xml">
<x:range name="Sheet1!A1:H3">
<x:row>
<x:c>
<x:fv>Name </x:fv>
</x:c>
<x:c>
<x:fv>Name </x:fv>
</x:c>
<x:c>
<x:fv>Exchange </x:fv>
</x:c>
<x:c>
<x:fv>Symbol </x:fv>
</x:c>
<x:c>
<x:fv>Last Trade </x:fv>
</x:c>
<x:c />
<x:c>
<x:fv>Change </x:fv>
</x:c>
<x:c>
<x:fv>Mkt Cap</x:fv>
</x:c>
</x:row>
<x:row>
<x:c>
<x:fv>Microsoft Corporation </x:fv>
</x:c>
<x:c>
<x:fv>Microsoft Corporation </x:fv>
</x:c>
<x:c>
<x:fv> </x:fv>
</x:c>
<x:c>
<x:fv>MSFT </x:fv>
</x:c>
<x:c>
<x:v>26.25</x:v>
<x:fv>26.25</x:fv>
</x:c>
<x:c />
<x:c>
<x:fv>-0.23 (-0.87%) </x:fv>
</x:c>
<x:c>
<x:v>239670000000</x:v>
<x:fv> $239,670,000,000 </x:fv>
</x:c>
</x:row>
<x:row>
<x:c />
<x:c />
<x:c>
<x:fv> </x:fv>
</x:c>
<x:c />
<x:c>
<x:v>15.58</x:v>
<x:fv>15.58</x:fv>
</x:c>
<x:c />
<x:c>
<x:fv>-1.38 (-8.14%) </x:fv>
</x:c>
<x:c>
<x:v>21590000000</x:v>
<x:fv> $21,590,000,000 </x:fv>
</x:c>
</x:row>
</x:range>
</content>
</entry>