我的Andr​​oid应用程序应该如何连接到Exchange Server? [英] How should my android app connect to Exchange server?

查看:238
本文介绍了我的Andr​​oid应用程序应该如何连接到Exchange Server?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从同步Exchange服务器的任务在一个Android应用程序。我不感兴趣的联系人,电子邮件或日历项目,只是任务。

I want to get tasks from an exchange server for sync in an android app. I'm not interested in contacts, emails or calendar items, just tasks.

有似乎是连接到Exchange Server的一些方法,但该文件既庞大而不透明的。

There seems to be a few ways to connect to an exchange server but the documentation is both vast and opaque.

我的服务器已经启用OWA但 API似乎不支持

My server has OWA enabled but the API seems unsupported.

任何意见多少AP preciated。

Any advice much appreciated.

推荐答案

使用的WebDAV的搜索方法,你可以查询Exchange存储与内容类型的 taskfolder

Using the WebDAV search method you can query an Exchange store for items with content type taskfolder.

与WebDAV协议更新项目使用的文件的HTTP PUT操作完成任一,或通过使用只含物业项目PROPPATCH方法。由于任务物品不一定与文件关联的我想你必须使用PROPPATCH方法来创建在taskfolder项目。

Updating items with the WebDAV protocol is accomplished either using an HTTP PUT operation for files, or by using the PROPPATCH method for items only containing properties. Since task items not necessarily are associated with files I assume you must use the PROPPATCH method to create items in the taskfolder.

更新:为Exchange 2010中的,WebDAV协议是的不再支持。相反, Web服务API 是可用。这里有一个例子如何获得任务物品

Update: as of Exchange 2010, the WebDAV protocol is no longer supported. Instead, a web service API is available. Here's an example on how to get a Task item.

澄清:Web服务API是在的 Exchange Server 2007的

Clarification: the web service api was introduced in Exchange Server 2007.

要检测哪些Exchange版本你跟我建议做一个试探的做法。尝试一些基本的Web服务调用来检测2007年和2010年,pferably使用的 自动发现 操作。如果这些不工作,探测WebDAV的接口的早期版本。

To detect which Exchange version you're talking to I suggest doing a "probing" approach. Try some essential web service calls to detect 2007 and 2010, preferably using the Autodiscover operation. If these do not work, probe the WebDAV interface for earlier versions.

这篇关于我的Andr​​oid应用程序应该如何连接到Exchange Server?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆