You need to sign in to do that
Don't have an account?
hegde_hegdek
using {!$Api.Session_ID} for authentication in google app engine for java
Hello,
I want to write a google app engine java force.com application,which will be embbeded within force.com,can i use
{!$Api.Session_ID} for authentication if so how.
regards
kaushik
You will need server url together with SessionId to make things work best. though you can hard code server url, to start with also.
The merge field for Partner v20 URL is {!API_Partner_Server_URL_200} and for enterprise you can use {!API_Enterprise_Server_URL_200}
Using both SessionID + Server URL, one can authenticate and make SFDC WS API calls.
I don't know which client api you are using to generate stubs. But for Salesforce WSC API and partner WSDL following will be the code.