Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Livelink SessionID and status value
Support_Lloyds_Register
Hi,We are in a process of revamping a LAPI application (with .NET) . The old application is built using the some old LAPI and we want to convert this into LAPI 9.7.In the old application, the "SessionID" and status is obtained using the call as below:int Session_ID=0, errStatus=0errStatus = LL_SessionAlloc(Session_ID, LiveLink_Server, LiveLink_Port, LiveLink_Database, UserName, Password)If the connection is successful then the "errStatus" is zero. If the connection is unsuccessful, then the errstatus is some negative value.And irrespective of the connection status, the SessionID is formed in "Session_ID" variable.Can you please let me know how to obtain this status value with the com.opentext.api.LLSession(...) function ?Also please assist me in obtaining the Session_ID value.This SessionID is being used in almost all the functions in the application.Thanks,
Find more posts tagged with
Comments
Appu_Nair
To me it looks like your language was classic VB since I see the LL_ constructs so in your code you may be using FREEing session calls etc.Pls let us know if this is correct.The .NET languages VB & C# make use of more OOP style programming.For eg the session is nvoked like this LAPI_DOCUMENTS doc; session = new LLSession (Server, Port, DFT, User, Pass); doc = new LAPI_DOCUMENTS (session);also if you look at one of the examples the call is usually in a try & catch method and the session errors are given to you in a friend function,that is how these lapi languages works.you use the doc object in the above example to do the livelink functions like doc.AccessEnterprise(whataver params )I do not think the VB.NEt or C# will give you the sessionID but a session object.There are a lot of examples in java,VB.NEt & C# in this website as well as the communities websiteBTW just curious if you go one step higher on livelink LES9.7.1 you can use true webservices as well.