combining Rest & Web api's

Post Reply
lmanickam
Posts: 1
Joined: Fri Apr 14, 2017 7:47 pm
OLAP Product: tm1
Version: 10.2.2
Excel Version: 16

combining Rest & Web api's

Post by lmanickam » Mon Apr 17, 2017 6:32 pm

Hi All,
I am using REST and web api's in a single portal to interface with Sharepoint.
For displaying complex cube views I am calling the web api directly ,which redirect URL in Iframe.
For certain cube data which update directly from .net screen I use REST.
How do I manage the session Token and cookies respectively, as WEB API uses sessionToken and REST uses TM1Sessionid /cookies. ?

IN WEB API "http://localhost:9510/tm1web/dwrx/jsonp ... vice/login gives the sessionToken and I am using this in subsequent web api calls.Works like a charm.
w.r.t REST though, I am unable to capture TM1SessionId to be used in subsequent API calls. The getAllREsponseHeaders() does not allow me to read the cookies. Every REST call has its own TM1sessionID. Is this fine. or should I reuse the sessionID's. How to best handle API login and multiple Async requests in a single screen.


Thanks
lawrence

Post Reply