2 Replies Latest reply on Jun 2, 2006 1:26 PM by poonamsheth

    HTTPService Error:can not retrieve data

      succeed Running Code:
      <mx:HTTPService id="showGoalService" showBusyCursor="true" method="POST" url=""/>

      fault code:
      <mx:HTTPService id="showGoalService" showBusyCursor="true" method="POST" url="" useProxy="false"/>

        • 1. Re: HTTPService Error:can not retrieve data
          ntsiii Level 3
          This is probably a security issue.

          The Flash Player cannot directly access any data source unless it is in the SAME DOMAIN as the swf was loaded from, or there is a crossdomain.xml file in the correct place on the data source server.

          The Flex proxy is designed to overcome this problem. Since it is a server process, it does not have the security limitation of a Flash Player client.

          • 2. Re: HTTPService Error:can not retrieve data
            poonamsheth Level 1
            I was going to write an article on the proxy, the part of Flex that is used by HTTPService and RemoteObject to access resources. Here's the notes I've jotted down for why you'd want to use the proxy:

            1. To have a centralized whitelist or when crossdomain.xml can't be used.
            2. When you need to have the text from errors. This doesn't show up without the proxy because the player isn't always given the text from the browser when there's an error status code.
            3. When you want custom dialog boxes for security, since the proxy is the only way to do custom authentication/authorization.
            4. And there's probably more reasons in 2.0. I don't know much about what's happening in the enterprise offering, but I do know the team has some amazing people on it who have been working like mad.