4 Replies Latest reply on Mar 12, 2010 5:50 AM by scorpion219

    StreamError with HTTPService, REST, HTTPS

    scorpion219

      Hi folks,


      As a newbie to Flex I am coping with the following situation.


      Using Flex 3; debugging/running with IE 8 I am developing a HTTPService client which will communicate over HTTPS with a RESTful web service that return JSON. The webservice resides at a J2EE web server on the same network as the Flash client.


      The following scriplet results in a "Error #2032: Stream Error." After some research I have read that this is a very generic exception.

       

      <mx:HTTPService id="getRecords"

      url="https://domain.at.com/services/service1"

      method="GET"

      resultFormat="text"

      result="serviceResultHandler(event);"

      fault="serviceFaultHandler(event);"></mx:HTTPService>

       

       

       

       

       

      private function serviceResultHandler(event:ResultEvent):void
      {

           // do sth.
      }

      private function serviceFaultHandler(event:FaultEvent):void
      {
           Alert.show(event.fault.message, "Could not retrieve records");
      }

       

       

      Any help is appreciated.

       

      Thanks