Chinaunix首页 | 论坛 | 博客
  • 博客访问: 314141
  • 博文数量: 118
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 1163
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-27 12:09
文章分类

全部博文(118)

文章存档

2023年(20)

2022年(3)

2021年(1)

2020年(1)

2019年(7)

2013年(2)

2011年(1)

2010年(37)

2009年(46)

我的朋友

分类: WINDOWS

2009-10-13 16:24:42

BMC Remedy ARAPI.NET 的安装与使用
 
 
=======
INSTALL
=======
1,unzip ARAPI71.NET.zip to C:\ARAPI.NET
2, cd cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
   regasm "C:\arapi.net\BMC.ARSystem.dll" /codebase
3,Add to the PATH environment variable
 
==========
HOW TO USE
==========
1,Create .NET application projects
2,add reference to "BMC.ARSystem.DLL" by browsing to "".
3,Coiding.

using BMC.ARSystem;
....
try{
   ARSystem.Server server;
   server = new ARSystem.Server();
   server.Login("myserver", "user", "password", "");
   String myForm = "formname";
   ARSystem.FieldValueList fieldValues = new ARSystem.FieldValueList();
   fieldValues[2] = "username";
//Submitter

   fieldValues[8] = "sometext";
//Short Description

   fieldValues[7] = "New";
//Status

   ARSystem.EntryIdList entryId = server.CreateEntry(myForm, fieldValues);
   Console.WriteLine("Submitted record: " + entryId.ToString());
}catch(ARSystem.Exception e){
    Console.WriteLine("ARSystem.Exception caught\n" + e.ToString());
}


4,Build and run.
 
==========
UNINSTALL
==========
1, cd cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
   regasm "C:\arapi.net\BMC.ARSystem.dll" /unregister
2,Delete from the PATH environment variable
3,Delete the entire from your system.

阅读(1541) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~