You need to sign in to do that
Don't have an account?
Ashan
Problem In Invoking Apex Web Service From (SOAP) Java
I get the error [INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session] when i try ro call a Apex Web Service as following with JAVA.
ConnectorConfig config = new ConnectorConfig();
config.setUsername(userId);
config.setPassword(passwd);
SoapConnection connection = Connector.newConnection(config);
connection.MyWebServiceMethod();
This method works fine for Enterprise WSDL
You need to use the enterprise or partner API to login first and get a session ID. Then once you have it, set it on the SoapConnection stub. SoapConnection won't login by default like EnterpriseConnection or PartnerConnection.
You can also use oauth2 to get a session ID.
All Answers
You need to use the enterprise or partner API to login first and get a session ID. Then once you have it, set it on the SoapConnection stub. SoapConnection won't login by default like EnterpriseConnection or PartnerConnection.
You can also use oauth2 to get a session ID.
Hi,
Could you post the working code that you used for calling web service method?