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) |