您的位置:首页 > 其它

.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

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: