Trying to access innovator items from external application

rated by 0 users
This post has 1 Reply | 1 Follower

Top 75 Contributor
Posts 15
Points 0
tomsedison Posted: Sat, Aug 18 2007 11:05 AM

Hi,

I am trying to access the items in Innovator from my custom application, I am getting 'Request time out' error.
My actual requirement is to upload and download files into vault. This has to be done from an external application.
When I looked into IIS log for the InnovatorSolutions website I found HTTP 405 error.
Please let me know where I have gone wrong? Is it not possible to access the Innovator objects from external applications?

This is what I did:
I created a windows application in VS2005/C# and included IOM.dll file to the references of my application.
Included namespaces "IOM" and IOME" to my project.
Following is the code block which I tried

private void Execute()
{
 IOM.HTTPServerConnection conn = new HTTPServerConnection();
 conn.http_username = "admin";
 conn.http_password = "innovator";
 conn.http_database = "InnovatorSolutions";
 conn.innovator_server_url = @"http://MyMachine:8880/InnovatorServer";
 conn.vault_server_url = @"http://MyMachine:8880/vaultserver/";
 try
 {
  Innovator obj = new Innovator(conn);
  Item item = obj.getItemByKeyedName("File", "file.jpg");
  LogMessage(item.getID());
  return;
 }
 catch (Exception ex)
 {
  LogMessage(ex.Message);
 }
 finally
 {
  conn.Close();
 }
}

Thanks in advance
Toms

  • | Post Points: 0
Top 50 Contributor
Posts 39
Points 85
snnicky replied on Sun, Aug 26 2007 2:20 AM
Hello Toms,

Innovator Server and Innovator Vault URLs must be full specified.
For example "http://MyMachine:8880/InnovatorServer/Server/InnovatorServer.aspx" and "http://MyMachine:8880/vaultserver/VaultServer.aspx".

405 HTTP error means "Directory listing is denied".

Also as far as I remember password must be MD5 encoded. Not just plain "innovator".

Hope this helps.
  • Filed under:
  • | Post Points: 0
Page 1 of 1 (2 items) | RSS