需求分析:
在Notes DB中通过webservice读取Notes文档中rtf域的内容(为日常邮件的body内容,可能有邮件收件人,抄送人,主题,附件,邮件body内容等)。此web service作为Provider。
在.Net程序设计中调用Provider类型的Notes暴露的web service,把rtf域的内容读取出来并保存为*.rtf的文档。
相关背景资料:
在windows操作系统中自带有WordPad,我们可以做个简单的测试把邮件的内容拷贝道此文档中并保存为rtf格式的文档进行查看。关于WordPad overview:
With WordPad, you can create and edit simple text documents or documents with complex formatting and graphics. You can link or embed information from other documents into a WordPad document.
You can save your WordPad file as a text file, rich text file, text file for MS-DOS, or Unicode. These formats provide greater flexibility when working with other programs. Documents that use multiple languages should be saved as rich text files.
看完这些,知道了吧,notes 的RTF域可以跟rtf文档对应起来。
Converting Web Attachment to Image Resource
http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F8725719400764ED9
问如何用代理将附件以二进制流的方式读入sql server中
notesMimeEntity 和 LS : DO 来实现\
http://wind-bell.iteye.com/?page=4&show_full=true
http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/Lotus_SmartSuite/Lotus_Notes/Q_23120423.html
http://www.openntf.org/projects/codebin/codebin.nsf/0/ED8B5E10555058AC86256F7E006B16A1
ftp方法的使用
http://blog.csdn.net/lqzmrlc/archive/2009/09/17/4564536.aspx
ToDo
http://blog.csdn.net/lqzmrlc/archive/2007/05/30/1631696.aspx
http://www.lotusfans.com/forum/showthread.php?p=185544
http://topic.csdn.net/t/20040923/09/3400445.html
http://www.codestore.net/store.nsf/unid/EPSD-59MN9J?OpenDocument
http://www.55it.com/article/detail/20081014135257703.html
http://www.nsftools.com/tips/RichTextOutputStream.java
http://www.nsftools.com/tips/NotesTips.htm#lsencryption
http://www.vbafin.com/Lotus-Notes-VBA-code.php
PDF
http://www.pd4ml.com/lotus.htm
关于C#读取文件流的方法
[WebMethod()]
public byte[] DownloadFile(string FName)
{
System.IO.FileStream fs1=null;
fs1=System.IO.File.Open(FName,FileMode.Open,FileAccess.Read);
byte[] b1=new byte[fs1.Length];
fs1.Read(b1,0,(int)fs1.Length);
fs1.Close();
return b1;
}
http://www.ibm.com/developerworks/lotus/library/ls-AWS_integration/index.html
NotesEmbeddedObject NotesStream
http://www.ibm.com/developerworks/lotus/library/web-services3/
http://apache.etoak.com/ws/axis/1_4/