是否有使用 WebDAV 查询 Exchange 服务器日历项目的工作示例?
我试图将一个小型测试项目组合在一起,但它因“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我写了一个答案,这对于另一个 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