You need to sign in to do that
Don't have an account?
Middha
Community User Login using Partner WSDL
Hi,
I am trying to login as a community user using Partner WSDL (Java) but with no success. Can anyone please help me understand what the endpoint should be to make this work? Here is a sample code I am trying.
I am trying to login as a community user using Partner WSDL (Java) but with no success. Can anyone please help me understand what the endpoint should be to make this work? Here is a sample code I am trying.
ConnectorConfig config = new ConnectorConfig(); config.setUsername("user@mycommunity.com"); config.setPassword("*******"); config.setAuthEndpoint("https://testcomm-developer-edition.ap*.force.com/services/Soap/u/30.0/"); PartnerConnection connection = new PartnerConnection(config); //Connector.newConnection(config); // LoginScopeHeader_element __header = new LoginScopeHeader_element(); // __header.setOrganizationId("00D90000000ql00000"); // __header.setPortalId("0DB90000000Gn00000"); connection.__setLoginScopeHeader(__header); System.out.println("Connection Successful = " + connection.getUserInfo());Even adding LoginScopeHeader did'nt work.
"• Access the SOAP or REST API through the community endpoint URL. To do so, you must have an API session. Login is not supported."
How do we get the session id via API? Does this mean we cannot login using community user credentials?