ActionScript 3.0 :: No Response From HttpService Send(), Close Connections?

Nov 11, 2009

my request with the HttpService class does not return any result at all in case I call the HttpService.send() method in short succession. No events dispatched.. even if the previous request has been processed successfully.I tried using a timer that does the seconds request after 100msec, and in this case it works alright.

Is this because the HttpService object does not allow multiple requests? In the API the "concurrency" attribute is mentioned, but that attribute does not seems to exist!? (in the AS class) Is there a wrapper class that queues requests? Also, is there a way to close connections? I get the "Transferring data from [server]" message in Firefox ever after the first call to resourceManager.loadResourceModule().

View 2 Replies


Similar Posts:


Flex3 - Flex HTTPService SOAP Response Cannot Be Decoded Raw Response?

Feb 6, 2010

I am trying to connect my flex app to a CFC I have which calls a method. It's to test a login control, and when i put the correct credentials in, it comes back with the error: "SOAP Response cannot be decoded. Raw response: ".

[Code]...

View 1 Replies

Flex :: HTTPService Going For Timeout Error As Web Service Take More Time To Get Response

Sep 29, 2009

Flex HTTPService giving timeout error as web service take more time to response. Due to large voueme Is there any work around to handle overcome the error

View 2 Replies

Flex - Delay A Screen Component To Be Drawn Until HttpService Response Callback Returns?

Jun 4, 2011

I have a Group screen component with some Path elements inside. The Group has a (default) style, and the Path has a (default) stroke. When the program starts, (on initialize) loads from a server (via HTTPService) some data that includes different styles for the Group, and it may also include different color/width for the Path stroke. If the styles/stroke attributes are not included in the server response, then the component will be shown with the defaults.

[Code]...

View 1 Replies

Xml :: Automatically Call The Httpservice.send?

Mar 29, 2010

I have an application that displays the data from 3 xml files (auto generated from SQL table) using httpservices to get them.The first xml file is small and contains around 30 items, the second and thrid contain around 200-300 items each.The first dataset loads quickly and is invoked on creationComplete. The second and third are called from click events and take quite a few seconds to load. A user of the application will take at least 2-3 minutes reading the data from the first dataset so is there a way I can have the httpservice.send for the second and third xml files called automatically, straight after the first file has finished loading to be able to show the first dataset immediateley and get rid of the waiting times between dataset views.

View 2 Replies

Actionscript 3 :: HTTPService: What Is Its Send Method Doing

Aug 12, 2011

I've got a JSON string:

[Code]...

I don't know what I am doing wrong but on my HTTP server I get: {["object","Object"]}

View 2 Replies

Encrypt Password And Send Through Httpservice In Flex?

Nov 4, 2009

I am sending password text to the http service request object.like pass.text now this password i am giving in navigate url also.but password is visibleing when load url and it is hacking.how can i encrypt password string and send it to jsp?

View 2 Replies

Flex :: Send Parameters In Order In HTTPService?

Mar 25, 2010

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 above code I have mentioned the parameter rows before facet, but the url I recieve is facet=true&rows=0. So I recieve the argument rows before facet and hence my webservice does not work. I figured out that the contents of array is always sent in alphabetical order, which I dont want.

Is there any way I can achieve explict ordering of parameters sent?

Note that I am not in power of changing the logic of webservice(its basically a RPC service supporting both desktop and web client).

View 1 Replies

Flex :: Send Some Data To PHP Using HTTPService POST?

Jun 2, 2010

I'm trying to send some data to PHP using HTTPService POST but for some reason it's not working. The same example works with GET but not with POST:

private function start():void{
var param:Object = {};
param.date = "2010-10-10";

[code]....

But when I change the method in HTTPService to GET and in PHP I get the result as expected - PHP sends back the date:

2010-10-10

View 1 Replies

ActionScript 1/2 :: Send HTTP Request And Get The Response In JSON Format?

Aug 10, 2009

I am using ActionScript 2.0 for my app development. I have checked XML and LoadVars class. These classes by default send/receive data either in XML or name/value pair format. I want to send data in JSON format and receive the response in JSON format. How can I achieve this behavior using AS2.0. I have noticed that AS3.0 has the capabilities to do so. My client platform doesn't support AS3.0.

View 3 Replies

ActionScript 3.0 :: Send Post Data And Receive Response From Https Url?

Jan 21, 2011

i am using flash cs5 with AS3 along with PHP 5, i am calling a https page and sending post data to it and retreiving the response, its working fine inside action script (FLASH CS5 IDE) but when i am embedded flash in html to use it from my web server (WAMP) then it is unable to send and receive data from https url.

i have turned on the mod_ssl module from php.ini for both php and apache.

but still there is no gain. can you advice me any method to control this thing with in action script 3, (i tried php curl but not useful) or the right way to do it, i want to post and receive data from https url from action script or php.

View 1 Replies

Media Server :: Closes Connections And Rejects New Connections?

Feb 23, 2012

I have been running FMIS 3.5 for about 18 months, and recently it started acting up even though I have not made any changes.  After a while (sometimes days, sometimes hours), it starts rejecting new connections, but it allows existing connections to keep working.  If I refresh my app, then I can't reconnect.  The license I have is unlimited.  Can anyone shed some light into why this is doing this and what I can do to fix it?  Sometimes it happens when only a couple dozen people are online, and today it did it about 4 times with over 1500 people online.

View 1 Replies

Flash :: Send Xml Flex To Php Via Post Method In <mx:httpservice >?

Jul 9, 2009

i created xml in flex after that creation i post to php via http service but when i add like xml in http service flex throws error msg like Error #1096: XML parser failure: Unterminated element." What did i worng ? How to send xml data flex to php ?

<mx:HTTPService id="createxml" method="POST" url="http://####/admin/?do=storebettingdetails" useProxy="false"></mx:HTTPService>var xm:XML = new XML("**********"); ------ adding child node -- Thend attached xml to service like createxml.request=xm;
createxml.send();

View 1 Replies

Ruby On Rails - Send Form Data To HTTPService?

Aug 5, 2009

The form is in a component lauched as a popUp, form data consists in:

login:String
password:String

I thought of a few different ways, but I don't like them..in the popUp, send button triggers a function that gets the form values and stores them in an Object, then saves the Object in the model, then dispatches a CreateSessionEvent. The CreateSessionCommand execute method is called, and it send the HTTPService passing the object from the model. (but then what if the model somehow doesn't get update and I send the same request twice?) I could try to get the form data from the command execute method itself.. how can I access them though, since it is a popUp (created with PopUpManager.createPopUp(this, LoginDialog),true))

I'd love to see an example flex+rail with restful xml application by the way, know of any?

View 1 Replies

Send Xml Data To The Server Using HttpService Request Thr POST In Flex?

Dec 12, 2009

send xml data to the server using HttpService request thr POST in Flex?

View 1 Replies

Flex :: Messaging - Using HTTPService To Send Http POST To Webhook

Oct 19, 2010

I've used the Flex HTTPService to connect to a backend blazeDS service without any problems at all. The question I have is, can I also use HTTPService to send a HTTP POST message to a server (with basic authentication)?

Specifically I'd like to be able to interface Flex with Notifo [URL] and to interface with it you just need to send a http POST with authentication and some key:value strings for the message content. (I've done it from java and from the command line with curl and it all seemed pretty easy to set but I'm just not sure how to go about trying this with Flex).

How would this be done via the HTTPService (if at all) ?

Can anyone see how the mxml/as class would look like and what would be in the services-config file and what adapters need to be used etc etc ??

View 1 Replies

Flex :: If HTTPService.send() Gets Called Before A Previous Call To It Returns A Result

Jan 28, 2010

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.send() gets called before a previous call to it returns a result. I want to cancel the first call, and only process the result from the last call to HTTPService.send()

View 4 Replies

Flex :: Determine How Long An HTTPService.send() Call Takes Round-trip?

Dec 10, 2009

I am looking to find out and track how long a round-trip to the server is taking. Just kinda curious more than anything.

View 1 Replies

Flash :: Flex - PHP Script Works Fine Until Send It A Parameter From HTTPService In Builder 4?

May 10, 2010

I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the URL of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong? Here is the HTTPService from Flex 4 that I'm using:

[Code]....

View 1 Replies

Ruby On Rails 3 :: HTTPService Not Properly JSON-encoding Nested Objects On Send()?

Nov 22, 2011

i am creating an object like this:

var myObj:Object = new Object();
myObj["someProperty"] = {
anotherProperty: "someValue",
whateverProperty: "anotherValue"
}

now i want to send it to a web server (rails):

var service:HTTPService = new HTTPService();
service.url = "http://server.com/some/path/entry.json";
service.method = URLRequestMethod.POST;
service.send( myObj );

the problem is that the server receives the json like this:

{"someProperty"=>"[object Object]"}

is this a problem with HTTPService? should i use the good old loader/urlrequest and serialize myself? by the way, serializing and then passing the string doesn't work, webserver receives empty request as GET.but i kinda want to use the httpservice class though...

View 2 Replies

ActionScript 3.0 :: Wait For Data - Send A 3 Byte Message To The Server (C) And Have The Server Return A Response?

Dec 17, 2010

I made a server connection with AC3 and C, I need the client(AC3) to be able to send a 3 byte message to the server (C) and have the server return a resopnse. So far everything works except for the fact that the feedback isn't fast enough becuase AC3 just tests for data once and moves on instead of waiting like in C. I'm using a binary socket at the moment but I was wondering if there was any way to wait for new data before moving on

View 2 Replies

Flex :: Manipulate "userid" In CDATA And Also Send It Off In Later HTTPService Code?

Dec 21, 2010

I'm trying to use a variable that I declare in my CDATA later on in my flex document. How can I manipulate "userid" in the CDATA and also send it off in the later HTTPService code? [code]...

View 1 Replies

Php :: Use HTTPService Rather Than URLRequest To Send Data. Content Type Is Messing With The Data?

Jul 28, 2011

I need to send a byte array of data (its an image source) along with a bunch of other vars to a service.If I send the byte array using something like the following

var request:URLRequest = new URLRequest ( 'http://www.mydomain.com/upload.php' );
var loader: URLLoader = new URLLoader();
request.contentType = 'application/octet-stream';

[code].....

View 1 Replies

Xml :: Flex - HTTPService Event Listener So It Triggers Something When ".send" Method Gets Data From XML?

Sep 23, 2009

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 condition, that IF condition relies on the data returned by loginData.The condition doesn't work because its called right next to the loginData.send, and .send method still didn't returned the values from the XML file. But if you click it a second time a second after the first click the IF condition works.So to deal with i wanted to do a eventListener so that when loginData.send returned the data from the XML it fires up the IF condition. But i don't know how to do it.

View 1 Replies

ActionScript 2.0 :: Currentframe - Send Movie Clip To A Specific Frame On The Main Timeline When Close

Jun 25, 2006

I have a movie clip which, when closed, should send you to a specific frame on the main timeline... I have used frame labels on the main timeline... Here is a bit of my code so far:

[Code]...

View 5 Replies

ActionScript 3.0 :: Detecting Browser Close Event And Send Data To Database / When User Closes Browser Window

May 24, 2010

Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]

View 6 Replies

ActionScript 2.0 :: Close Browser By Clicking On Close Button Embedded Swf?

Jul 27, 2009

i want to close browser by clicking on close button embedded swf. I have tried fscommand("quit"), but which is not working on browser.

View 9 Replies

Flex :: Set Flash Crossdomain.xml To Allow Only SSL Connections?

Feb 7, 2011

How do I set the flash crossdomain.xml file to only allow https ssl secured connections? I have this but I think this will allow non secure connections too.

< cross-domain-policy >
< allow-access-from domain="*" secure="false" / >
< /cross-domain-policy >

View 1 Replies

C# :: .net - Socket Server - Concurrent Connections

Apr 23, 2011

I have made a socket server in C# for a flash game that I am developing, I got the code from somewhere and I am a beginner in c# and .net development . It works fine in practice when connections are made and the server functions correctly. Get 2 concurrent connections at the same time and we have a problem. here is the basic aspects of the socket server below: (alot taken out for obvious reasons) how can I alter this so that it can handle concurrent connections? Should I be threading each response?

[Code]...

View 4 Replies

Flash :: How Does Socket Connections Work On The Web

Oct 6, 2011

I am trying to debug a socket connection issue between flash in a web browser and flash in a client type program. The connection is closing properly in the web, so I would like to understand how the web side of things work. Right now I can load up a remote flash file in a web browser and that triggers a connection ESTABLISHED stat when viewing with netstats -fn. When I close the dialog which runs some javascript to remove the flash from the dom, the connection stats goes to TIME_WAIT. Does the act of removing the flash from the html DOM sever the flash connection which triggers a TIME_WAIT state? How does that process work?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved