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
sfDevelopersfDeveloper 

Logout error 1113

Hello,

I have this code for the logout call:

If I call this methode I get this error:

 

XmlRpcException : unknown method name logout code : 1113

 

Kan anybody helps me ??

 

Kind regards,

sfDeveloper

 

 

public void logOutSalesforce()

      {

            Hashtable param=new Hashtable();

            param.put("version",this.getVersion());

           

            Vector params=new Vector();

            params.add(param);

            try

            {

                  this.xmlRpcClient.setSessionId(this.getSessionId());

                  this.xmlRpcLogin.execute("sfdc.logout", params);

                  this.setConnected(false);

            }

            catch(XmlRpcException ex)

            {

                  String fout = " XmlRpcException : " + ex.getMessage() + " code : " + String.valueOf(ex.code);

                  MyLogger.Log(fout);

            }

            catch(IOException ex)

            {

                  String fout = " IOException : " + ex.getMessage();

                  MyLogger.Log(fout);

            }

      } // end of logout method

 

DevAngelDevAngel

Hi sfDeveloper,

Make sure you are running the call against the instance server and not the login server (www).  The logout call, by the way, does not invalidate the session.

sfDevelopersfDeveloper

Hi,

Oeps , I see that. I'll chnage it

thank you,

sfDeveloper