You need to sign in to do that
Don't have an account?

Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: This session is not valid for use with the API faultcode=sf:INVALID_SESSION_ID faultactor=
Hi,
I am getting the following exception while making "listMetadata" API Call.
Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: This session is not valid for use with the API faultcode=sf:INVALID_SESSION_ID faultactor=
the same code was working fine in other sandbox. While moving to another sandbox, I got the above error.
Any suggestions?
Thanks
I am getting the following exception while making "listMetadata" API Call.
Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: This session is not valid for use with the API faultcode=sf:INVALID_SESSION_ID faultactor=
the same code was working fine in other sandbox. While moving to another sandbox, I got the above error.
Any suggestions?
Thanks
It seems like uour web service which is being called from the callout does not have a valid Session ID. You will have to pass the web service a valid Session ID (from the getSessionID UserInfo method), or you will have to have a valid login call from the web service to salesforce.com to generate a new session ID.
Hope the above mentioned information helped you.
Regards
Pramod
I am using "UserInfo.getSessionId()" to pass the session id. Still got the above error.
Thanks