Salesforce login with Flex not working

Help
alissa
2008-01-08
2013-04-17
  • alissa
    alissa
    2008-01-08

    Hi there,

    We are a Flash/Flex web development company, looking to build a Flex RIA that integrates with Salesforce.

    We have downloaded the FlexSalesforce_20071129 API and are logging in with the following code:

    ----
    var responder : AsyncResponder = new AsyncResponder(result, fault);
      
    var request : LoginRequest  = new LoginRequest({ username: username, password: password, callback: responder});

    var connection  : Connection   = new Connection();
        connection.login(request);
    ----

    However upon attempting to login to Salesforce we get the following error:

    Error #2032: Stream Error. URL: https://www.salesforce.com/services/Soap/u/11.0

    Alternatively we have tried to use the standard Flex WebService component to load the Salesforce WSDL however receive the following error:

    Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (https://www.salesforce.com/services/Soap/c/11.1?WSDL)

    Furthermore although we have been able to download the WSDL when logged into the Salesforce UI, when we try to view it from the URI identified in the WSDL, we receive an HTTP "405 GET not supported error".

    If anyone is able to offer some insight into the issues we're having it would be greatly appreciated, as currently we can see no alternative to allow our users to log into Salesforce via a Flex UI.