.Net怎么调用FileNet P84.0 Content Engine and Process Engine
2007-08-23 21:36
302 查看
一般来讲,主要通过两个途径:
1)用FileNet Provided DLL or COM :
FileNet.Api.DLL or JGuil Brdige
2) 用Web Service, 需要WSE2.0移植到WSE3.0
以下两个web service是PE 和CE。
http://host:port/wsi/FNCEWS35SOAP/
http://host:port/wsi/ProcessEngineWS
主要介绍CE web service调用:
1) 可能需要测试一下web service在运行中,可以
http://host:port/wsi/FNCEWS35SOAP/WSDL,注意区分大小
2) 可以自定义一个Provider DP,比如:
<FileNetConfigation>
<User name="test" password="test" isneedencrypt="false" />
<ObjectStore name="test" tolfolder="/test" tempfolder="/Temp" />
<FileNet contentengineurl="http://host:port/wsi/FNCEWS35SOAP/" processengineurl="http://host:port/wsi/ProcessEngineWS" />
<MAX maxrow="100" maxsize="5242880" />
<DownLoad path="C:\\Temp\\" />
</FileNetConfigation>
<microsoft.web.services3>
<diagnostics>
<trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo" />
<detailedErrors enabled="true" />
</diagnostics>
<policy fileName="wse3policyCache.config" />
</microsoft.web.services3>
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameOverTransportSecurity" type="Microsoft.Web.Services3.Design.UsernameOverTransportAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader" type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="kerberosSecurity" type="Microsoft.Web.Services3.Design.KerberosAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="FNETP8">
<usernameOverTransportSecurity />
<requireActionHeader />
</policy>
</policies>
3) 自定义一个Policy (For PE): The codesnip is the following:
using System;
2using System.Collections.Generic;
3using System.Xml;
4using System.Xml.Schema;
5using Microsoft.Web.Services3;
6using Microsoft.Web.Services3.Design;
7
8namespace FileNet
9using System;
using System.IO;
using System.Web;
using System.Collections.Generic;
using Microsoft.Web.Services3;
using Microsoft.Web.Services3.Security.Tokens;
using Microsoft.Web.Services3.Mime;
internal class FileNetCEWSHelper : FileNetBase
{
"Declared variants"#region "Declared variants"
/**//// <summary>
/// The filenet content enginer web service.
/// </summary>
private FNCEWS35ServiceWse _wseService = new FNCEWS35ServiceWse();
"Upload Docuemnt to FileNet Server"#region "Upload Docuemnt to FileNet Server"
public string AddDocument(CEContentData contenData, string documentTitle, string folderPath)
{
return this.AddDocument(contenData, string.Empty,documentTitle, folderPath);
}
#endregion "Upload Docuemnt to FileNet Server"
"Move the document to the specified folder path"#region "Move the document to the specified folder path"
public void MoveDocumentByID(string documentID, string documentTitle, string folderPath)
{
this.MoveDocument(documentID, documentTitle, folderPath);
}
#endregion
"Download the docuemnt from FileNet Server"#region "Download the docuemnt from FileNet Server"
public CEContentData DownloadDocumentByID(string docuemntID)
{
return DownloadDocument(true, docuemntID);
}
#endregion "Download the docuemnt from FileNet Server"
"Retrieve the document by ID or title"#region "Retrieve the document by ID or title"
public FileNetDocumentDataSet GetDocumentByID(string documentID)
{
return ExcuteRepositorySearch(this.GetSearchSQLByID(documentID));
}
#endregion
}
1)用FileNet Provided DLL or COM :
FileNet.Api.DLL or JGuil Brdige
2) 用Web Service, 需要WSE2.0移植到WSE3.0
以下两个web service是PE 和CE。
http://host:port/wsi/FNCEWS35SOAP/
http://host:port/wsi/ProcessEngineWS
主要介绍CE web service调用:
1) 可能需要测试一下web service在运行中,可以
http://host:port/wsi/FNCEWS35SOAP/WSDL,注意区分大小
2) 可以自定义一个Provider DP,比如:
<FileNetConfigation>
<User name="test" password="test" isneedencrypt="false" />
<ObjectStore name="test" tolfolder="/test" tempfolder="/Temp" />
<FileNet contentengineurl="http://host:port/wsi/FNCEWS35SOAP/" processengineurl="http://host:port/wsi/ProcessEngineWS" />
<MAX maxrow="100" maxsize="5242880" />
<DownLoad path="C:\\Temp\\" />
</FileNetConfigation>
<microsoft.web.services3>
<diagnostics>
<trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo" />
<detailedErrors enabled="true" />
</diagnostics>
<policy fileName="wse3policyCache.config" />
</microsoft.web.services3>
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameOverTransportSecurity" type="Microsoft.Web.Services3.Design.UsernameOverTransportAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader" type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="kerberosSecurity" type="Microsoft.Web.Services3.Design.KerberosAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="FNETP8">
<usernameOverTransportSecurity />
<requireActionHeader />
</policy>
</policies>
3) 自定义一个Policy (For PE): The codesnip is the following:
using System;
2using System.Collections.Generic;
3using System.Xml;
4using System.Xml.Schema;
5using Microsoft.Web.Services3;
6using Microsoft.Web.Services3.Design;
7
8namespace FileNet
9using System;
using System.IO;
using System.Web;
using System.Collections.Generic;
using Microsoft.Web.Services3;
using Microsoft.Web.Services3.Security.Tokens;
using Microsoft.Web.Services3.Mime;
internal class FileNetCEWSHelper : FileNetBase
{
"Declared variants"#region "Declared variants"
/**//// <summary>
/// The filenet content enginer web service.
/// </summary>
private FNCEWS35ServiceWse _wseService = new FNCEWS35ServiceWse();
"Upload Docuemnt to FileNet Server"#region "Upload Docuemnt to FileNet Server"
public string AddDocument(CEContentData contenData, string documentTitle, string folderPath)
{
return this.AddDocument(contenData, string.Empty,documentTitle, folderPath);
}
#endregion "Upload Docuemnt to FileNet Server"
"Move the document to the specified folder path"#region "Move the document to the specified folder path"
public void MoveDocumentByID(string documentID, string documentTitle, string folderPath)
{
this.MoveDocument(documentID, documentTitle, folderPath);
}
#endregion
"Download the docuemnt from FileNet Server"#region "Download the docuemnt from FileNet Server"
public CEContentData DownloadDocumentByID(string docuemntID)
{
return DownloadDocument(true, docuemntID);
}
#endregion "Download the docuemnt from FileNet Server"
"Retrieve the document by ID or title"#region "Retrieve the document by ID or title"
public FileNetDocumentDataSet GetDocumentByID(string documentID)
{
return ExcuteRepositorySearch(this.GetSearchSQLByID(documentID));
}
#endregion
}
相关文章推荐
- C#调用GDI实现.NET中XOR、AND和OR模式的贴图
- QT下实现对linux 的Shell 调用 的几种方法 QProcess AND QThread
- QT下实现对Linux Shell调用的几种方法 QProcess AND QThread
- 用jscript 实现postback and 调用.Net事件
- BizTalk开发小技巧-.Net 调用BizTalk Business Rule Engine
- .NET 4.5 使用async和await关键字调用异步方法
- 别人调用的 .net 下自带的 tree
- Best engine and tools for a TA and GAMDEVs
- Activity, Service,Task, Process and Thread之间的关系
- The specified CGI application encountered an error and the server terminated the processThe specified CGI application encountered an error and the server terminated the process
- js调用.net后台事件、后台调用前台以及js调用服务器控件
- java.lang.Process调用程序阻塞问题解决
- linux kernel中的系统调用是怎么定义的
- .NET(C#)调用webService获取客户端IP地址所属区域(非异步)
- .NET 动态调用WebService + WSE + UsernameToken
- activiti学习资料(ProcessEngineImpl提供的服务)
- java调用.Net WCF服务的讲解
- 怎么引用.NET可执行文件*.exe中的类
- dojo调用.net webservice并返回json
- 怎么在c#中使用mapx5.0(三)-.NET教程,C#语言