httpservice

Flex - 2032: Stream Error in IE only

I get a 2032 stream error from Flash in response to POST requests that return "201 Created" in IE (Firefox works fine). Since Flash doesn't provide access to the HTTP status I can't tell that it has actually succeeded. The request is being made with HTTPService. Any suggestions? Has anyone else seen this? Thanks, Alex ...

Getting progress on POST using HTTPService in Flex/AS3

I'm using HTTPService with a POST operation to submit a Base64 encoded file (taken from bitmap data within the app) but I could really do with getting some idea of the progress of the POST operation (e.g. like the FileReference.upload()). I don't think this is possible, but it would be awesome if it is (via any means, I'm willing to cha...

HTTP Basic Authentication with HTTPService Objects in Adobe Flex/AIR

I'm trying to request a HTTP resource that requires basic authorization headers from within an Adobe AIR application. I've tried manually adding the headers to the request, as well as using the setRemoteCredentials() method to set them, to no avail. Here's the code: <mx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; ...

Problem sending post request from Flex app to Ruby on Rails back end

I am having trouble getting my flex app to send a POST request to my Rails app. It seems to always send GET. This is my service declaration: <mx:HTTPService id="add_email_service" showBusyCursor="true" result="parseJoinResult();" fault="onJoinFault(event)" useProxy="false" /> In my application init function, I set the method to PO...

Why does this Flex "Hello World" app not pick up the result of my remote HTTPService call?

When I go to http://localhost:3000/hello/sayhello, Rails outputs: hello world! as HTML. But when I run this Flex remote "Hello World" app, I see a button and a textbox but it does not pick up the output of the HTTPService call to my Rails url. Any ideas why? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http:/...

Two different HTTPService classes in Flex

Why are there two different HTTPService classes in Flex? this and this And the second one inherits the first one. Why couldn't there be a single class combining the two? ...

HTTPService in Flex with multiconnections

Hello I use HTTPService in my Flex application. I load several xml each about 1mb. Somethimes I need to stop loading previos xml and start to loading new one. If I use HTTPService.cancel(); or HTTPService.disconnect() - it increase the time to get the answer from the server. Is there a quick way to stop the previos loading in HTTPServi...

Populating ArrayCollection with HTTPService

Hello, I am creating a RSS Feed application based on a data, and I have the following: I have an ArrayCollection that is pre-populated with data. I am sorting through the ArrayCollection, get 1 piece of data (condition), and need to connect to an RSS feed which returns me the title, and I set my ArrayCollection in correspondence to con...

Flex HTTPService in Flash

Is there a standard equivalent to the Flex HTTPService class in Flash CS4? ...

Flex: Processing xml, before using it in datagrid

Hi! I have following problem: My webservice application returns xml data in following order: <my_claims> <claim> <opponent>Oleg</opponent> <rank>2000</rank> </claim> </my_claims> Where number of claim nodes, can be 0,1, and so on. How I correctly handle, the data received from the service. Currently, when I am trying to...

Dynamic url in HTTPService not working

Hello and thanks in advance for any help you can provide. My AIR application queries a webservice to see what components to build. A sample of the XML returned is: <item> <type>EventList</type> <url><![CDATA[http://dashboard/cgi-bin/dataService.pl?type=ManagedEvents]]&gt;&lt;/url&gt; <index>4</index> <title>Index 4 eventlist</titl...

Flex 3: ConcurrencyError using HTTPService

I'm getting occasional ConcurrencyError faults when using HTTPService in Flex 3. I have four HTTPService objects, all configured with concurrency=single. I'm not sure though how to continue to diagnose, as I don't see in the FaultEvent what service object caused the issue, and I can't easily reproduce it on-demand. One feature of my app...

HTTPService event listener so it triggers something when ".send" method gets data from XML.

Good day everybody. I've doing a bit of "training" at working with Flex and Remote Data from XML files. This is my HTTPService <mx:HTTPService id="loginData" url="com-handler/basic.xml" showBusyCursor="true"> </mx:HTTPService> I have a button and when its clicked its call a function, that calls loginData.send and does a little IF co...

FileReference and HttpService Browse Image Modify it then Upload it

Hello, I am trying to do an image uploader, user can: - browse local file with button.browse - select one and save it as a FileReference. - then we do FileReference.load() then bind the data to our image control. - after we make a rotation on it and change the data of image. - and to finish we upload it to a server. To change the data ...

Problems re-using HTTPService object

I'm trying to reuse the HTTPService object in a flex app but I'm running into a problem. In the handler for ResultEvent.RESULT I'm removing the listener, but it isn't removed. I've have to catch the asyncToken from send() and attach a new property so I know what it's supposed to do in the handler. I've set up an example here: http://www...

Flex httpservice faults

Hi, I've been given a Flex application which made use of a RESTFUL service. I've managed to create a SQLite DB which stored data from the service and now I would like the application to be able to run offline and make use of the data existing in it's local DB. This works fine the only problem is that the httpService object throws a fau...

To execute Flex cleanup function when browser is closed by user

I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it? Thanks in advance for any responses! Symptoms CustomEvent triggered, but not executed. >> EventHandler for CustomEvent.SEN...

Flex HTTPService Progressbar

Hi, How can I set a progress bar that may start when an HTTPService is sent and stop when the HTTPService ends? I followed code given here but encountered following error: Type was not found or was not a compile-time constant: ProgressWin. Don't know whether ProgressWin.mxml is a component or module or what. I just created a ne...

Populate ArrayCollection with HTTPService

Hi guys. Yes there is a question like this one, but there is no activity and no answer. I want to load data from a external XML file, using a HTTPService, and on the ResultEvent of the same HTTPService i want him to populate a ArrayCollection with the data from the XML. I think a ArrayCollection is the ideal for this XML. but I'm open...

HTTPService Result - checking number of items with a specified name

I have a question about HTTPService and the data it returns. Well lets consider this XML: <PhotoGalleryData> <Photo> <id>1</id> <name>Summer Vacation</name> <description>In vacation</description> <fullImage>originalImg/1.JPG</fullImage> </Photo> <Photo> <id>2</id> <name>Winter Vacation</name> ...