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

INVALID_SESSION_ID in Web Service Call
Hi all,
I am getting the error:
INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key: 00DA0000000HWvb!ARkAQJ8YeEOP6HqR1R5qF8hTf9U6A8W09DLZgxFRKEnHiaHy1BbyY.GUSG0aHRr_F0SmCqPb_ySEG4wjJwHb2L1dVzFOR3aG
When I try to invoke my apex class externally, this seems to only happen for a new org that I have recently created (after the upgrade to Winter '10). I have checked and the code before to login and get the login session id and put it into the stub header:
sf.operations.login(sarrCredentials[0], sarrCredentials[1], sarrCredentials[2]);SessionHeader sh = new SessionHeader();sh.setSessionId(sf.operations.loginResult.getSessionId());stub.setHeader(new billAccountsServiceLocator().getServiceName().getNamespaceURI(), "SessionHeader", sh);stub.generateBills();
Does anyone know what I am doing wrong here?
Thanks
James
Hi all,
I have found the fix for this problem, the error message was quite misleading as the actual error was that the method it was looking for was in a package but in the org it existed out of the package. To fix this I regenerated the jar file from the new wsdl.
Hope this helps anyone else having the same problem.
James
All Answers
Hi all,
I have found the fix for this problem, the error message was quite misleading as the actual error was that the method it was looking for was in a package but in the org it existed out of the package. To fix this I regenerated the jar file from the new wsdl.
Hope this helps anyone else having the same problem.
James