This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - HttpServerConnection

russell.anderson - Wednesday, April 16, 2008 2:42 PM:

Following the directions in the 8.1.1 Programmers Guide (8.2 not available for download yet) document under section 11.1 and running against IOM.DLL version 8.2.0.5419, results in the compile error "The type 'Aras.IOM.HttpServerConnection' has no constructors defined when I try to instantiate a new HttpServerConnection object as follows:

 HttpServerConnection h = new HttpServerConnection();

 Additionally, the HttpServerConnection object in version 8.2.0.5419 doesn't appear to have the http_username, http_password, etc, properties that are referenced.

Is there an updated document with sample code for connecting to Innovator using the IOM DLL that I should be referencing, or am I missing something else?

 Thanks,

 Russell



snnicky - Friday, April 18, 2008 2:58 PM:

Hello Russel.

Here is a C# sample for Innovator 8.2:

string innovatorServerUrl = "">myinnovator/.../InnovatorServer.aspx";
string database           = "mydatabase";
string userName           = "admin";
string password           = Innovator.ScalcMD5("innovator");

HttpServerConnection httpConnection = IomFactory.CreateHttpServerConnection(
  innovatorServerUrl, database, userName, password);

httpConnection.Login();
try
{
  Innovator innovator = IomFactory.CreateInnovator(httpConnection);
  Item q = innovator.newItem("User", "get");
  q.setAttribute("select", "working_directory");
  q.setProperty("login_name", "admin");
  Item r = q.apply();
  //.....
}
finally
{
   httpConnection.Logout(false);
}