You need to sign in to do that
Don't have an account?
Michael Dsoza
Authentication Error
Hi, while calling rest service from Soap UI, I am getting following error as,
Tue May 13 15:55:39 IST 2014:DEBUG:>> "GET /services/apexrest/Lead/doGet/00QU000000HNKhZ HTTP/1.1[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Authorization: Bearer 00DU0000000HkOk!ARAAQOIzC8_c2FB8Y0lfXFYa91i0zexb2_MKni.ZB4zW8gBLTc3x4GRJbzai.KyLu3EHq2RQ24WXl.Sn1IW6UaxXSTP04jJC[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Host: na12.salesforce.com[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "HTTP/1.1 401 Unauthorized[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "Date: Tue, 13 May 2014 10:25:47 GMT[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "Content-Type: application/json;charset=UTF-8[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "Transfer-Encoding: chunked[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "64[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[{"message":"This session is not valid for use with the REST API","errorCode":"INVALID_SESSION_ID"}]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "0[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[\r][\n]"
Please let me know what should i do ??
Tue May 13 15:55:39 IST 2014:DEBUG:>> "GET /services/apexrest/Lead/doGet/00QU000000HNKhZ HTTP/1.1[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Authorization: Bearer 00DU0000000HkOk!ARAAQOIzC8_c2FB8Y0lfXFYa91i0zexb2_MKni.ZB4zW8gBLTc3x4GRJbzai.KyLu3EHq2RQ24WXl.Sn1IW6UaxXSTP04jJC[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Host: na12.salesforce.com[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
Tue May 13 15:55:39 IST 2014:DEBUG:>> "[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "HTTP/1.1 401 Unauthorized[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "Date: Tue, 13 May 2014 10:25:47 GMT[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "Content-Type: application/json;charset=UTF-8[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "Transfer-Encoding: chunked[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "64[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[{"message":"This session is not valid for use with the REST API","errorCode":"INVALID_SESSION_ID"}]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "0[\r][\n]"
Tue May 13 15:55:40 IST 2014:DEBUG:<< "[\r][\n]"
Please let me know what should i do ??
Please see if the instructions in this article will help you resolve the issue: https://help.salesforce.com/apex/HTViewSolution?urlname=Why-is-my-client-application-getting-an-INVALID-SESSION-ID-error-1327109389075&language=en_US
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank
Please see if the instructions in this article will help you resolve the issue: https://help.salesforce.com/apex/HTViewSolution?urlname=Why-is-my-client-application-getting-an-INVALID-SESSION-ID-error-1327109389075&language=en_US
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank