I am currently trying to get the user authentication aspect of Service 3.0 working. I'm using the REST server, Services 3.5 and have run through the basic tests outlined here:
https://drupal.org/node/1699354
I've moved on to adding user authentication but am stuck at the first hurdle ... I've been working with the following tutorial (which is excellent btw):
www.tylerfrankenstein.com/code/android-app-with-drupal-7-services-phoneg...
And my main issue is that, when trying to interrogate the path with the following (using REST Console on Chrome):
- URL: http://[my site>]/test/system/connect.json
- Content Type: application/x-www-form-urlencoded
- Actions: POST
'test': my endpoint path
I've set the 'authentication' checkbox on the service, I'm not logged in and the following paths generate responses with no problems:
http://[my site>]/test/node/26.json (GET)
http://[my site>]/test/node.json (GET)
But the system/connect.json generates nothing! :(
Does anyone have any thoughts or suggestions?
TIA.
Comments
parser type?
Is the parser type allowed in your service setup? It's under service->server->request parsing
all set!
I added them all, just for good measure. the key ones being 'application/json ' and 'application/x-www-form-urlencoded' for what I want to do.
I added the XML ones just so I could test the service a bit more ...
thanks for the suggestion!
solved it
It seems the issue sprung from using the REST Console extension on Chrome.
I installed Postman instead and the call gave a response as expected:
{
"sessid": "HcojzmTOZ0yn_jzquZPN9a3aKF967xXdAYTt4pOCWSc",
"session_name": "SESS6b5d847cf66a35b819fbc5197055fc37",
"user": {
"uid": 0,
"hostname": "127.0.0.1",
"roles": {
"1": "anonymous user"
},
"cache": 0
}
}
not able to get output from system/connect services
Hi,
my connection for system/connect was working in prefect manner but now its returning blank.
the message i get from my application is: The underlying connection was closed. Could not establish trust relationship for the SSL/TLS secure channel.
not able to get output from system/connect services
Hi,
my connection for system/connect was working in prefect manner but now its returning blank.
the message i get from my application is: The underlying connection was closed. Could not establish trust relationship for the SSL/TLS secure channel.
In postman I am not able to get the session