You need to sign in to do that
Don't have an account?
Login to sandbox with Flex Toolkit
Hi,
I've been trying to login to my sandbox with flex toolkit and it is day number 3 with no success I looked at many threads with people having this issue, but I was not able to find a solution to my problem.
I tried with the token and with out, also with test.salesforce.com and w / o technically everything that I could. Also I checked and my username and password are correct since I was able to login to sandbox with these credentials.
Here is my code snippet:
var lr:LoginRequest = new LoginRequest();
lr.username = "kiril@mail.com.kirilsand";
lr.password = "myPasswordLsuKA6tMDPQcobimbnqRd9sY";
//lr.server_url = "https://tapp0.salesforce.com/service/Soap/17.0";
//lr.server_url = "test.salesforce.com";
lr.callback = new AsyncResponder(logedInToSand, loginToSandFault);
//trace("lr = " + ObjectUtil.toString(lr));
//apexTest.serverUrl = "test.salesforce.com";
apexTest.login(lr);
Any help will be appreciated. I alway get the fault exception username or password invalid or user locked out.
Thanks in advance.
var lr:LoginRequest = new LoginRequest();
lr.username = "kiril@mail.com.kirilsand";
lr.password = "myPwA6tMDPQcobimbnqRd9sY";
//lr.server_url = "https://tapp0.salesforce.com/service/Soap/17.0";
//lr.server_url = "test.salesforce.com";
lr.callback = new AsyncResponder(logedInToSand, loginToSandFault);
//trace("lr = " + ObjectUtil.toString(lr));
//apexTest.serverUrl = "test.salesforce.com";
apexTest.serverUrl = "https://test.salesforce.com/services/Soap/u/17.0";
apexTest.login(lr);
Thank you.
All Answers
You can try something like that
var lr:LoginRequest = new LoginRequest();
lr.username = "kiril@mail.com.kirilsand";
lr.password = "myPasswordLsuKA6tMDPQcobimbnqRd9sY";
apexTest.serverUrl = "https://test.salesforce.com/services/Soap/c/15.0";
lr.callback = new AsyncResponder(logedInToSand, loginToSandFault);
apexTest.login(lr);
Thanks for the input.
You suggestion returned the following exception:
loginfault: (com.salesforce.results::Fault)#0
context = (null)
detail = (null)
faultcode = "soapenv:Client"
faultstring = "No operation available for request {urn:partner.soap.sforce.com}login"
var lr:LoginRequest = new LoginRequest();
lr.username = "kiril@mail.com.kirilsand";
lr.password = "myPwA6tMDPQcobimbnqRd9sY";
//lr.server_url = "https://tapp0.salesforce.com/service/Soap/17.0";
//lr.server_url = "test.salesforce.com";
lr.callback = new AsyncResponder(logedInToSand, loginToSandFault);
//trace("lr = " + ObjectUtil.toString(lr));
//apexTest.serverUrl = "test.salesforce.com";
apexTest.serverUrl = "https://test.salesforce.com/services/Soap/u/17.0";
apexTest.login(lr);
Thank you.
TTTHHAAANKKK YOOOOUUUUU
I am glad answers help even after such a long time