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

XMLRPC in java
I recently upgraded code to version 2.0 of the salesforce api. I downloaded the sfdcdemo.java file from the sforce website, edited the sfdcdemo.prop file to add my account info and compiled and ran the code. I got the following error, having made no changes to the .java file:
Login call successful, session_id: 968xRtb75xQWzUYYCSwNN7xPWOZdR2dQRopgHDRrp3o4l
VM5Ug95efG6fnr1Ydvqyn_r7bSk1w.hZfYqaLHMKvbtzKggVlhL
Describe Params
[{version=2.0, type=global}]
Exception in thread "main" helma.xmlrpc.XmlRpcException: unknown method name des
cribe
at helma.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:174)
at helma.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:79)
at helma.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:64)
at sfdcdemo.main(sfdcdemo.java:183)
I encounter the unknown method exception with the search and logout methods as well.
Works like a champ, thank you!
Hi,
where downloaded the sfdcdemo.java file from the sforce website,
Hi,
where in sforce.com to download sfdcdemo.java .
thanks
Hi,
Could you email me the zip file. I have the zip file which works if I put the version number 1.7. I am wondering what version number you use. If I use version number 2.0, the url return from login call is https://...
I got the error "unkrown protocol https" . Do you have the same problem?, Do you know why.
my email address is pei.lei@aptsoft.com
Thank you very very much.
peilei
Peilei,
The zip file is on it's way via email. I haven't seen the unknown protocol error. Hopefully the file I sent you works. I made some changes based on the devAngels' suggestion in this same thread.
Cheers, Nikki