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
aaronaaron 

XMLRPC implementation

Where can I download the sforce implementation of XMLRPC.

I tried using the apache implementation.  Logging in worked okay, but I don't see where to add the session-id as a cookie.  An example would be appreciated.

Aaron

 

aaronaaron

I tried modifying the xmlrpc library from apache to do:

con.setRequestProperty("Cookie",

aaronaaron

I tried modifying the xmlrpc library from apache to do:

con.setRequestProperty("Cookie", "<the session id>");

and when I attempt to logout using the session id returned by the login it fails.

For the session id I tried:

"XYZ" (whatever I was sent)

"session_id=XYZ"

"session ID=XYZ"

but I always get a session ID is missing or invalid error

alal

The name of the session id cookie is 'sid'.

Try taking the sessionID (Session ID, whatever you get back from the server) value

you get and assign it to 'sid' and it will work better for you.

yhyh

i did this and it worked:

                    String sessionCookie = "sid=" + sessionId;

                    con.setRequestProperty("Cookie", sessionCookie);

where sessionId is the session id returned from executing a login.