I am new to Flex (FLex Builder 3.0), and I'm creating a simple application that would basically just authenticate to the Freshbooks API (www.freshbooks.com) via HTTPS. without sending anything else.
Here's what I have so far:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolu...
How the FaultEvent listener in HTTP Request is getting called? Is it based on the status code of response? If yes for what all status code It will get called?
...
Is it possible to deserialize an XML file to a class in Flex without manually checking the XML and/or creating the class, with the help of a HttpService?
Edit: Explained a bit more and better.
We have an XML file which contains:
<Project>
<Name>NameGoesHere</Name>
<Number>15</Number>
</Project>
In Flex we want this to be serializ...
We have a Flex app that is currently loading an XML file that contains Multiple Choice Question data. I don't want a user to be able to access this file via http, but if I use HTTPService to load the file (what we're doing currently) it seems as though I have to place the XML file within the public_html folder on our server.
Is there a ...
Hi all
I want to use an HTTPService to load some data (number of columns and number of rows) which change randomly by a certain frequency
I get the string like freq#ncols#nrows#value.
How can i display for example:
1000#21#13#2391 that means: in 21 col, 13 row i have the value of 2391 which changes every 1 second.
Thanks
...
I have to populate an Advanced Data Grid which have the following fields:
Continent->State->Society-->Actual Value-->Estimate Value
I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; have you got any idea to do so?
Thank you.
If necessary i'll post the .as file, but i...
while trying to solve my problems in serializing the execution of cairngorm commands, I tried to bypass completely the event dispatching and simply instantiated the command I wanted to execute, then called it's execute method. In this method there's a call to a delegate that calls ServiceUtils that performs the HTTPService.send thing...
...
Where can I find an example of Flex application which implements an HTTPService asynchronously called by an AsyncToken and an AsyncResponder?
Thanks in advance
the httpservice send a string like this with a certain frequency:
row#column#number#row#column#number#row#column#number#....
EDITED CODE:
<?xml version="1.0" encoding="utf-8"?...
I am loading some XML with HTTPService in Flex. It is taking longer than I would like to load. So I want to do some trouble shooting, but in order to tell what is making a difference I need to be able to time the requests and how long they are taking.
What is the best way to time an http service to see how long it took from HTTPService....
Is it possible to use an AMF Channel in a Flex HTTPService client application without using Adobe Livecycle, BlazeDs or similar in order to do real time asynchronous request from an HTTPService?
...
I am creating a Flex application and am using an HTTPService to retrieve XML from an asmx web service. This web service needs one string parameter. This parameter contains multiple options separated by ~ and parsed apart. This web service works with a limited length of string, otherwise an error is retrieved if the string is long enou...
Hello,
I am having a little trouble sending an xml string to an HTTPService an Actionscript3 (see code below). Basically, I am trying to send a georss xml string for conversion into another format. I am getting an ioError and suspect the xml is causing havoc with the services parser.
I know this approach is probably not the best, but...
OK I have an HTTPService that executes the dataLoaded(e:ResultEvent):void function whenever it gets a result from a send() call.
OK so If I call HTTPService.send() and then call HTTPService.send() again before the previous one receives a result, I end up repeatedly running dataLoaded() which is undesirable
What I want is if HTTPService...
My HTTPService resultHandler is firing twice. Is that normal? The messageId and token# are the same. StatusCode=200 both times.
I've examined the traffic in Fiddler and only one request is being submitted. Here's a code snippet; I've put a breakpoint on the service send() method and it is happening only once.
var token: AsyncToke...
Hi everybody,
I have a XML-file, which I want to send to a rails server. To do so I use the following code:
<mx:HTTPService id="dataService"
result="resultHandler(event)"
resultFormat="e4x"/>
In a Function triggered by a save button, I do the following:
var params:Object = {};
params["xml_file"] = xmlDoc;
dataService.method = ...
Hi!
XML is cool in flex, but I have an annoying problem to solve, caused by what I can imagine is a feature. You see, when you have just one tag of something, it creates an object which is not an array. But when finds more than one, it puts it on an array structure.
I want to solve it elegantly. Any recommendation.
Example: this illus...
I have an HTTPRequest in mxml that has an mx:request defined inside it. I use the info in the mxml request 99% of the time (I thought it was 100% until I found this bug). So I need to send the HTTPRequest with one of the items in the request different. I tried using the send() method and sending my own object, much like you would if no r...
Hi,
I am getting a FaultEvent when trying to send form fields through HTTPService that contain more than 542 chars.
Initializing the HttpService:
httpServ = new HTTPService();
httpServ.method = 'POST';
httpServ.url = ENDPOINT_URL; //http://localhost:3001/ReportError.aspx
httpServ.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
httpSer...
I'm developing a web application that is going to be served from an OSGi HTTP service, I register it using a WicketServlet, and I don't know how to serve static files (CSS, JS, images and so).
How could I mount a directory as a resource with the static content?
Or should I configure the resource locator in some way?
...
I am trying to work with a simple HTTPService. The problem is that my webservice is conscious of the order of arguments it gets. I will tell the problem with an example:
var service:HTTPService = new HTTPService();
var params:Object = new Object();
params.rows = 0;
params.facet = "true";
service.send(params);
Note that in the abov...