function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
odieodie 

Logout after using webservices

Hi,

I am relatively new to SFDC. I have experience developing SaaS solutions that consume webservices.

I was surprised to find that SoapBindingStub does not have a logout method. The doc mentions a logout method but my stub does not have it.

Can anybody shed some light on logout and graceful session handling in SFDC web services?

Thank you very much!
Odie.
Best Answer chosen by Admin (Salesforce Developers) 
aalbertaalbert
The API does have a logout function. Have you generated the stubs from a recent WSDL? Or are you using some older sample code?

All Answers

aalbertaalbert
The API does have a logout function. Have you generated the stubs from a recent WSDL? Or are you using some older sample code?

This was selected as the best answer
odieodie
aalbert,

Thanks for the response; your diagnosis was accurate.

I was picking up where someone else left off and assumed the stubs were current. This is a 10.x version of the API.
That being said, we will not be migrating to the latest for a while, I wonder how people handled sessions in older versions like 10.

cheers,
Odie.