是否有使用 WebDAV 查询 Exchange 服务器日历项目的工作示例?

发布于 2024-09-04 00:21:56 字数 193 浏览 5 评论 0原文

我试图将一个小型测试项目组合在一起,但它因“400 Bad Request”而失败,所以我很确定我做了一些非常基本的错误,但我发现的示例都是问题的形式,仅显示难题的小部分,例如公共文件夹的请求 XML 或其他内容。

是否有一个完整的示例,我只需输入我的用户名和服务器名,它就会列出我的日历中的日历项目?

这是针对 C# 3.0/4.0 的。

I have tried to hack together a small test project, but it fails with "400 Bad Request" so I'm pretty sure I have done something very basic wrong, but the examples I've found are all in the form of questions, only showing minor pieces of the puzzle, such as a request XML for public folders or whatnot.

Is there a complete example somewhere where I can just put in my username and servername and it would list the calendar items in my calendar?

This is for C# 3.0/4.0.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贩梦商人 2024-09-11 00:21:56

我写了一个答案,这对于另一个 SO 问题来说可能有点过分了。 ^^ 为了您的舒适,我将链接放在这里。 我的答案底部的查询示例。。它可能对您有帮助,尽管我没有将整个代码放入其中,因为它不是公共领域。该代码示例来自 Java 程序。

如果您的代码一切正确,那么来自 Exchange Server 的响应将返回一个 XML 字符串,其中包含用于进一步处理的日历或约会项目。

最好的问候,

塞莫

I wrote an answer, which was perhaps overkill for another SO question. ^^ For your comfort I put the link right here. A query example on the bottom of my answer.. It might help you, though I didn't put the whole code into it, because it isn't public domain. The code example was from a Java program.

If everything was correct with your code, then the response from the Exchange Server will return you an XML String, which contains Calendar or Appointment Items for further processing.

Best regards,

Semo

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文