You need to sign in to do that
Don't have an account?
Issue: helma.xmlrpc AND org.apache.xmlrpc
Hello all,
Now I have an other issue :
The first time I got started with sForce I've received java samples with the helma.xmlrpc from the support of sForce. It works perfectly. After a while I found out that the helma is out of date and there is a new version on <http://ws.apache.org/xmlrpc/>. The new xmlrpc classes are now called "org.apache.xmlrpc".
So I've downloaded the new version and I replaced the import form (import elma.xmlrpc.*) into (import org.apache.xmlrpc.*).
After that al my sForce code fails, because the new xmlrpcClient class doesn't have the method:
instanceOfxmlrpcClient.setSessionId("the returned session_id from login call");
And as you know before every call in sForce the xmlrpcClient needs the session_id except the login call.
I wish to use the new version of xmlrpc, but how should I solve the session_id problem. I'm sure there is some way to let the xmlrpcClient know what the sessionId is.
Would somebody help me with a code example (Java wil xmlrpc)?
Thank you.
sfDeveloper
Hi sfDeveloper,
this.sessionId = sid;
}
con.setRequestProperty("SessionId", sessionId);
}
Hi Dave,
Oke, I can modify the source code of the XmlRpcClient class.
One more question:
Which version of xmlrpc you recommend (v1.0, v 1.1 or v1.2-b1)
Hi sfDeveloper,
I recommend the latest, non-beta version of Apache XML-RPC.