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

apex.login not returning

I've developed an S-Control in Flex and it works just fine in my developer edition account.  However, when I use it in my professional edition account, the call to apex.login does not return (either to the callback or the fault handler) and I have no fault or debug information.  I've seen mixed messages as to whether this should work with the professional edition.

I call the login on creationComplete and the login code looks like this:

                private function login(event:Event):void {
          "in login");
                    var lr:LoginRequest = new LoginRequest();
                    lr.server_url = parameters.server_url;
                    lr.session_id = parameters.session_id;
          " server_url: "+parameters.server_url + "  ::  session: "+parameters.session_id);
                    lr.callback = new AsyncResponder(loadData, handleFault);
          "done login");

Any thoughts on what's wrong with this code?  Should this work? Shouldn't I at least get a fault?


Message Edited by dcowing on 08-02-2008 09:49 AM
Best Answer chosen by Admin (Salesforce Developers) 
By default, the API is not enabled in Professional Edition, that is why it is working on your Developer Edition, not on your P.E.