I have received a partner token from Salesforce which needs to be appended in SOAP header, I am using following code to authenticate a valid session, but I am not sure where I need to append partner token. Following is my code in Java.
ConnectorConfig config = new ConnectorConfig(); config.setAuthEndpoint("https://login.salesforce.com/services/Soap/c/24.0/"); config.setServiceEndpoint(salesforceUserCredentials.getServerURL()); config.setSessionId(salesforceUserCredentials.getSessionId()); connection = new EnterpriseConnection(config); logger.info("Connection Status: "+connection);
GetUserInfoResult userInfo = connection.getUserInfo();