+ Start a Discussion
Angel.comAngel.com 

xmlrpc_login issue

The return value of xmlrpc_login doesn't contain the correct server_url. 

  Hashtable result = (Hashtable) xmlrpc_login.execute("sfdc.login", loginParms);

  myServer = (String) result.get("server_url");

  xmlrpc = new XmlRpcClient(myServer);

The value of myServer is https://na1-api.salesforce.com/servlet/servlet.Api. But I found I can only

make it work with http://na1-api.salesforce.com/servlet/servlet.Api. Otherwise it says "unknown protocol: https".


 

mobileTestmobileTest

Hi Angel.com,

Check the secure parameter on your login call.  This parameter is option and will default to true, but if you have false coded into your app it will return the non-secure url.

 

plpl

Hi,

 

I have the same problem too. If I give the version number 1.7. I can login. But not version 1.9. I am not sure if it is my jar files are old. https is different protocol from http. I suspect that the old jar not support the protocol https .

Please correct if I am wrong. I need the problem be fixed.

 

pei lei

 

EnderEnder

If you are receiving the "https not recognized error" it may be that you are using an old jar. 

 

Message Edited by mike kreaden on 07-29-2003 02:37 PM