0 Replies Latest reply on Dec 15, 2010 1:33 AM by Charly.P

    Strungling with HttpService and web page.

    Charly.P

      Hello all,

       

      I'm testing the httpService with flex 4.

       

      I try to access a web page that is an ashx page that returns an xml, the content type of the page is application/xml.

       

       

      From my mxml view I use this script to get the data:

      protected function findByName(name:String):void{
                      srv.send();
                  }

       

      <s:HTTPService id="srv"
                             url="http://xx.xx.xx.xx/FlexHttpBinding/getemployees.ashx"
                             result="data=srv.lastResult.list.employee"
                             method="POST"
                             contentType="application/xml"
                             />

       

       

       

      I did setup the IIS7 website to accept anonymous access, so that should be ok.

       

      With this I get the error: 2032Stream Error.

       

      The url is correct so no idea what happens here.

       

      Any ideas ?