阅读:2492
回复:2
|
[已解决]关于C#代码连接服务器发起流程,如何连接服务器?参数如何填写?
OThinker.Clusterware.ConnectionSetting[] config = new OThinker.Clusterware.ConnectionSetting[1];
config[0] = new OThinker.Clusterware.ConnectionSetting(); config[0].Address = "127.0.0.1"; config[0].Port = 8211; config[0].ObjectUri = ""; OThinker.Clusterware.LogicUnitConnectionPool pool = new OThinker.Clusterware.LogicUnitConnectionPool(config, OThinker.Clusterware.AuthenticationType.Forms, "H3BPM", "Administrator", "000000"); OThinker.H3.Client.EngineClient h3=new OThinker.H3.Client.EngineClient(pool); 目前一直报错找不到服务器 OThinker.Clusterware.ConnectionException: ConnectionFailed: No available servers. |
1楼#
发布于:2017-05-04 19:38
帖内置顶 – – 2017-05-08 18:23
参考这段代码:
OThinker.H3.Connection conn = new OThinker.H3.Connection(); OThinker.Clusterware.ConnectionResult result = conn.Open("127.0.0.1", 8211,"DefaultEngine", "administrator", "000000"); if (result == OThinker.Clusterware.ConnectionResult.Success) { //... } |
|
2楼#
发布于:2017-05-04 19:38
参考这段代码:
OThinker.H3.Connection conn = new OThinker.H3.Connection(); OThinker.Clusterware.ConnectionResult result = conn.Open("127.0.0.1", 8211,"DefaultEngine", "administrator", "000000"); if (result == OThinker.Clusterware.ConnectionResult.Success) { //... } |
|
3楼#
发布于:2017-05-05 08:37
用webservice的方式,参考如下帖子
http://bbs.h3bpm.com/read.php?tid=1438&fid=30&page=1#8430 如果只是在后台发起流程,参考\Portal\WebServices\BPMService.asmx中的写法 |
|