Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Livelink Webservice Authentication

Status
Not open for further replies.

LivelinkHELP

Programmer
Aug 29, 2012
10
GB
Hi am a newbie to Livelink,

Have just kmocked up a quick program to access Livelink via the dotnet webservice, using the Authentication.svc followed the clientguide in the docs folder for creating a token via the AuthenticateUser method i.e.

// create a service token
Authentication.AuthenticationClient auth = new Authentication.AuthenticationClient();

try
{
token = auth.AuthenticateUser( userName, password );
}
catch( FaultException ex )
{
Console.WriteLine( "Unable to authenticate: " + ex.Message );
}

exception occurs everytime for me with the following error: The type initializer for 'java.util.Locale' threw an exception.

The system uses SOS and the port is the standard 2099, any ideas from anybody would be most welcome as I don't see what I am doing wrong.


Thanks
 
unfortunately there is nothing that is ocurring form livelink server side and I think it could be a client dependency problems.Have you made sure that your refrences are correct. When you reference the WSDL do you get downloaded proxy info that says "created the client" that sort....
a snippet form my C# 2010 Express that works against a standrad livelink on 2099 only Directory Services and not OTDS
DocumentManagement.OTAuthentication dmOTAuth = new DocumentManagement.OTAuthentication();
ContentService.OTAuthentication csOTAuth = new ContentService.OTAuthentication();
try
{
string username = "Admin";
string password = "livelink";
string token = authclient.AuthenticateUser(username, password);
dmOTAuth.AuthenticationToken = token;
csOTAuth.AuthenticationToken = token;
}catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
return;
}

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Yep generated the web references on the client fine no problem,

On the server have also installed the Visual J# 2.0 Redistributable packsge (64 bit) for the server.

Have followed the Documentation to the letter.

 
Had a deeper look at the exception generated and it's falling over at java.util.Locale.ctor() because it's unable to refernece DLL 'vjsnativ', but have checked under c:\Windows\Microsoft.Net\Fraemwork and Framework64\v2.0.50727 and it's there 'vjsnativ.dll' on the server.

So a bit lost as to why it cannot reference said DLL am I missing something?
 
Managed to get round the issue, copied the vjsnativ.dll to the V4 framework directory and it works fine. the Web server Application pool is using the v4.net framework, if I set it to use the .Net 2.0 framework I get a different error 405.

So it gets me a valid token now.
 
on my win7 64 bit I did not have to instll any VJ libraries....

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
The Visual J# 2.0 Redistributable packsge has to be installed on the web server where the web services are referenced from according to the OpenText installation instructions under C:\OpenText\webservices\sdk\docs\install.html

I refer to -

Prerequisites
•.NET Web Services
◦IIS installed and configured
◦Microsoft .NET Framework Version 3.0 Redistributable Package
◦Microsoft Visual J# Version 2.0 Redistributable Package - Second Edition (x86)
•Java Web Services
◦Java 1.5
◦Tomcat 5.5.23
•.NET Clients
◦Visual Studio 2005 extensions for.NET Framework 3.0 (WCF & WPF), November 2006 CTP (if you want to create/update Service References to Web Services).
Note: this is not required for Visual Studio 2008
◦NUnit-Net-2.0 2.2.8 (if you want to execute the NUnit sample tests)
•Java Clients
◦JAX-WS (if you want to create a Java c

According to our provider (UK) Causeway this is correct,




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top