定制应用程序
SharePoint 2013现在提供了更好的工具,如果你想创建定制的移动应用程序。关于这个话题有一系列的文章:how-to articles in the MSDN library
Windows Phone
模板
微软为Visual Studio提供了可以使用的Windows Phone SharePoint 2013 application templates
- Windows Phone Empty SharePoint Application
- Windows Phone SharePoint List Application
因此,如果你停留在微软的宇宙中你可以得到充分的优势和预定义的模板与内置的推送通知的支持。
模板生成基于Silverlight的Windows Phone应用并使用MVVM设计模式,因此你会从简单管理层受益,它可以独立开发,测试和更改。
图片来源:http://msdn.microsoft.com/en-us/library/sharepoint/jj163209(v=office.15)
SharePoint的电话应用程序向导(SharePoint Phone Application Wizard)会指导你通过项目设置5个简单的步骤。
With the help of this template, you can go from this SharePoint list
用这个模板,你可以从SharePoint列表开始。
数小时内,实现这个Windows Phone移动应用程序。
也可参考:
- MSDN library: Overview of Windows Phone SharePoint 2013 application templates in Visual Studio
- MSDN library: Architecture of the Windows Phone SharePoint List Application template
开发环境
重要提示:
在客户端操作系统安装SharePoint 2013 预览版是不支持的,并且,安装Windows Phone开发所必须的工具也是不支持服务器操作系统的(比如Windows Server 2008)。
因此,为了开发Windows Phone的SharePoint应用,你需要两个系统。这不是个问题,因为你可以 get a free developer version of SharePoint Online directly from Microsoft.
参考:
- MSDN library: How to: Set up an environment for developing mobile apps for SharePoint
- Download: Windows Phone SDK 7.1
iOS, 安卓和其他的系统
所有其他系统SharePoint 2013 提供了合适的接口设置:
- CSOM: ECMAScript (JavaScript, JScript) object model architecture
- REST endpoints in SharePoint 2013
- OData / OAuth
你可以通过JavaScript在浏览器中执行脚本来与SharePoint站点进行交互,或者远程使用支持标准REST能力的任何技术。
客户端对象模型 Client-side object model (CSOM)
- 浏览器中执行的脚本, .NET Framework-管理的应用中执行的代码, 一个Silverlight 2.0 程序中执行的代码。
- 代理的 .js 和 管理的 .dll 文件, 分发的client.svc web 服务, 序列化的请求, 以及解析的答复。
REST终端
- RESTful HTTP 请求, 使用 Open Data Protocol (OData) 标准
- client.svc web 服务处理 HTTP 请求并提供适当的回应,以Atom (默认回应) 或 JSON 格式
来源:http://msdn.microsoft.com/en-us/library/fp142385(v=office.15)
重要提示: SharePoint 2013预览版是只读的!
现在, SharePoint 2013预览版的REST服务是只读的。即,只有代表一个HTTP GET操作的REST端点是可用的。在未来的里程碑中,我们计划增加更新 (HTTP PUT 请求)功能,创建并插入(HTTP POST请求),以及删除(HTTP DELETE 请求)。(来源:http://msdn.microsoft.com/library/office/jj163228(v=office.15))
The SharePoint 2013预览版REST服务支持如下OData询问操作:Filter, Take, Expand
移动对象模型
SharePoint 2013有一个新的和增强的移动对象模型。俩个有趣的附加项是:
- SPFieldGeoLocation (more info: Mobile devices and SharePoint 2013 – Part IV: Location)
- Authenticator (more info: Overview of SharePoint 2013 mobile client authentication object model)
来源:http://msdn.microsoft.com/en-us/library/sharepoint/jj163079(v=office.15)
为了验证SharePoint在线,您将需要BrowserBasedAuthentication。
更多信息: