从iPhone进行Lotus Domino服务器访问 [英] Lotus Domino Server Access from iPhone

查看:91
本文介绍了从iPhone进行Lotus Domino服务器访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Lotus Notes和Domino服务器的新手.我希望我的iPhone应用程序可以访问Domino服务器.我想从我的iPhone应用程序中的Domino服务器获取联系人.

I am new to lotus notes and domino server. I want my iPhone application to have access of domino server. I want to get Contacts from domino server in my iPhone Application.

我用它搜索了一下,发现了很多文件.但是我没有找到完美的数据流.谁能解释我如何从Domino服务器上获取通讯录/日历/邮件.

I googled for it,I found many documents. but I couldn't find perfect data flow for that. can any one explain me how can i get Contacts/Calendar/Mail from domino Server.

使用Java代理编写Lotus Notes的目的是什么? 简而言之,我想使用iPhone SDK 3.0为iPhone制作Lotus Notes.

What is the purpose of using java Agents for lotus notes? In simpler word, I want to make Lotus notes for iPhone with iPhone SDK 3.0.

谢谢

推荐答案

由于不能使用Lotus Java库访问Lotus Domino,所以最好的选择是通过HTTP访问Lotus Domino以获取数据. 最简单的方法(如果您没有在Lotus Notes中进行开发的经验)是尝试从names.nsf(服务器目录)和邮件数据库中的现有视图获取数据.为此,您可以使用以下参数调用视图:

As you can't use the lotus java libraries to access Lotus Domino, your best bet would be to access Lotus Domino via HTTP to get the data. The simplest way (if you have no experience whatsoever developing in Lotus Notes) would be to try and get the data from the existing views in names.nsf (the Server Directory) and the mail databases. To do so, you can call a view with the following parameters:

http://www.yourserver.com/names.nsf/($users)?readviewentries
http://www.yourserver.com/names.nsf/($users)?readviewentries&outputformat=JSON

在每种情况下,您都是从"names.nsf"数据库中的视图($ users)"中以XML或JSON格式获取数据.

In each case you are getting the data from the view "($users)" in the "names.nsf" database, in XML or JSON format.

如果需要的数据多于现有视图中的可用数据,建议不要创建新视图(因为这将意味着修改标准模板).为此,我将使用代理创建一个新数据库,该代理恢复所需的信息并以您喜欢的格式返回它.

If you need more data than is available in the existing views, I would recommend against creating new views (as it would imply modifying the standard templates). For that, I would create a new database with agents that recovered de info you need and returned it in the format you prefer.

代理只是代码块(通常用LotusScript编写,类似于VBasic或Java).它们可以安排在某些时间或事件上运行,也可以直接调用(通过注释或通过URL).您可以使用以下网址来呼叫座席:

Agents are just blocks of code (usually written in LotusScript, which is similar to VBasic, or Java). They can be scheduled to run at certain times or events, or called directly (from notes or via URL). You could call an Agent using an url as such:

http://www.yourserver.com/names.nsf/myAgent?openagent

您可以从代理访问服务器中的任何数据(如果您有权限),并向请求URL的程序返回"text/html/任何非二进制文件".

From the agent you could access any data in the server (if you have permission to) and return a "text/html/whatever not binary" to the program requesting the URL.

注意:刚刚发布的Lotus Domino 8.5.1包含ActiveSync协议,因此我不确定是否需要在iPhone中重新创建Notes客户端.

Note: Lotus Domino 8.5.1, that has just been released, includes the ActiveSync protocol, so I'm not sure about the need to recreate the Notes Client in the iPhone.

这篇关于从iPhone进行Lotus Domino服务器访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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