Page 1 of 1

Connect to TM1 with CAM by using API

Posted: Fri Jul 29, 2011 10:36 am
by meri
Hi All,

I need to connect to TM1 with CAM security via TM1 API java. I saw 2 methods to connect to CAM: openCAMConnectionWithPassport and openCAMConnectionWithNamespace. I tried to set my namespace, user name and password in those TM1Var parameter, but it is still not working.

Can somebody give me an idea what is those parameter ? or, please give me some reference about it.

Thanks.

Re: Connect to TM1 with CAM by using API

Posted: Fri Jul 29, 2011 2:38 pm
by bagovino
I don't really know too much about Java API, but if it's similar to how the C API works for CAM authentication you have to create an array of TM1Vals and pass that to the login function. The correct order of elements for the array should be { [CAM Namespace], [Username], [Password] }. Are you doing that?

Check out the TM1Val class in their Javadoc. Specifically, makeArrayVal and addToArray

Re: Connect to TM1 with CAM by using API

Posted: Sun Jul 31, 2011 12:22 am
by moby91
Do you know the IBM Technote 1418355 ?

https://www-304.ibm.com/support/docview ... wg21418355
TM1 API Using the C++ or Java API to logon to a TM1 Server secured with a Cognos 8 Namespace

Re: Connect to TM1 with CAM by using API

Posted: Mon Aug 01, 2011 2:08 am
by meri
Hi Bagovino, Thanks for your reply. I did it before post this issue, but it is not working. Do you still have idea ?
Hi Moby91, Thanks for your reply. Yes, I read it and used it before post this issue, but it is not working. Do you still have idea ?

Do somebody have idea to solve this issue ?

Thanks.

Re: Connect to TM1 with CAM by using API

Posted: Mon Aug 01, 2011 2:57 am
by bagovino
Can you post the relevant code? It's tough to tell what might be wrong otherwise.

Re: Connect to TM1 with CAM by using API

Posted: Mon Aug 01, 2011 3:14 am
by meri
The issue is solved. I checked on my configuration, the namespace ID is not same as its name.
Now, I am using namespace ID (previously, I was using namespace name), and it is working.

Thanks for your great help :)