For context - I am a Java expert, completely new to Livelink....Very simple problem. I have a document ID, host, port, username and password for Livelink. All I need to do is to be able to get the latest version of that document in HTML format.So, heres what I tried!1: HTML AttemptWorking on some information that calling the livelink.exe cgi program with certain parameters would get me the document, I wrote a program that tried as such, using the following format URL to get the document:
http://myServer/Livelink/livelink.exe?func=ll.login&username=blah&password=bluh&nextURL=/livelink.exe?func=doc.ViewDoc&docID=123456This didn't work because the nextURL is sent *back* to the browser (in this case the JAVA program) as a client side re-direct - you can't make two requests down a single http socket from a JAVA program (http rules to avoid spamming), and the second socket is treated as a new connection, hence has no login information tied to it. This solution failed.2: Using LAPIThis seemed the ideal solution. I wrote a very basic program like this to test it:import com.opentext.api.*;public myTest{ public static void main( String args[] ) { LLSession mySession = new LLSession( "myServer", 2209, -2000, 123456, "me", "myPassword" ); LAPI_DOCUMENTS myDoc = new LAPI_DOCUMENTS( mySession ); int code = myDoc.FetchRendition( -2000, 123456, 1, System.out ); }}Compiled fine, but when I ran it it threw an exception when trying to do the FetchRendition. This exception was thrown way down the stack in the LLConnect method when trying to get the "FileAttributes" value from the LL_VALUES object related to the session.Due to the lack of JavaDoc and decent documentation I decaffed the class files for the LLConnect object, plus all objects above it, and found that the "FileAttributes" value is placed in the LL_VALUES object by a call to setFileAttributes from within the LLConnect object. This method is *never* called from the chain involving FetchRendition and FetchVersion (none of the different parametered versions call if). This could never have worked.This solution failed.So my questions are:1: Does anyone have an example piece of code involving FetchRendition that works? Am I missing something obvious?2: Does anyone know of a way to call livelink.exe with a document ID to display in a single call fashion (i.e. no client side redirects).3: If all else fails, does anyone know of a SQL call to either the dtree or dversdata tables that will give me a physical file that I can read?Thanks in advancePeter LewisP.S. Mail replies to pete@uptima.co.uk as well if possible