Hello,
I have a very simple app.
one page prompts the user to login. upon successful login, user's info, including the session_id are returned + another page is loaded to display additional user data.
onload of the 2nd page, another service is invoked to pull other user related data.
nothing is passed in the request of the 2nd service. it relies on the session established to pull data.
however I'm unable to pull any data from the 2nd service. it seems like the session_id is not being passed by the client!! below are few snippets:RESTService/Login Service Settings:
Name: RESTService
URL: http://www.sampleurl.com/login
Method: POST
Data Type: JSON
Settings: None
Security Context: None
Content Type: JSON
Use Appery.io Proxy: Channel-2392149
RESTService/Login Service Response:
{
"header":{
"status":200,
"short_msg":"Login success",
"long_msg":"You are now logged in as user111"
},
"body":{
"user":{
"user_id":"114",
"nick":"user111",
"password":"0c534ed3fff7d2bfd32ee19d84644e3f",
"first":"first_user111",
"last":"last_user111",
"status":"1",
"create_date":"2014-04-08 06:31:39",
"update_date":null
},
"user_type":"R",
"session_id":"92230poi43v1sn5oqb5tonpco0"
}
}the above works just fine. now to the service that doesn't work.
UserCircle Service Settings:
Name: userService
URL: http://www.sampleurl.com/UserCircle
Method: POST
Data Type: JSON
Settings: None
Security Context: None
Content Type: JSON
Use Appery.io Proxy: Channel-2392149
UserCircle Service Response:
{
"circles":[]
}the above is empty circles. even though the user does have few circles. I tested the same from POSTMAN (both REST Calls) and it works just fine. I tried multiple options:
1- did not pass any parameters in the request of getCircle services (which is what the service expects). but no data back. I understood that the client automatically saves and sends the cookie/session back to the server! is that the case? or should I explicitly send the session_id?
2- passed session_id as a header variable and as part of JSON request but no response.Any help would be much appreciated!