httpservice

whats the difference between url and destination using httpservice in flex?

Hi all I wondering whats the difference between url and destination using httpservice in flex. I came across a httpservice example that looked something like this service.resultFormat="e4x" service.method="GET"; service.destination="http://www.blash.com" // I used an actual page service.addEventListen...

Flex HTTPServices and valid xml

Hi guys, I'm currently attempting to communicate with an API using Flex as the client. I'm using Flash Builders HTTPServices to do so, bit of a noob to all this. All works correctly if the accessed XML files elements are formatted correctly however if I add a hyphen to the element name I get flex warning me to the fact ie. The returned o...

Flex Application, requesting HTTP Service, response working in IE but not in other browsers...

I'm building a Flex application which shows data of a user (SDK 3.2). Requires log in. First thing i do is call a php script via HTTPService which checks if a cookie is set, and if it is, returns it. Works fine in Flex, debugging, but in a browser, only works in IE. PHP script is working perfectly. I've tried changing the URl everytime t...

Using Bulkloader to load several HTTPServices in FLex 4

Bulkloader (code.google.com/p/bulk-loader) typically loads different types of URL, Images, XML, etc. Is there a way to include Flex 4 HTTPService calls as loadItems. Or any other way of bulk loading with overall progress for multiple HttpService calls? Any help, suggestion or recommendation would be welcome. ...

How to handle < and > symbols in HttpService if we use xml as a result format ?

I used a httpservice which returns a xml as a result.But the content itself has a '<' symbol or '>' symbol , it leads to error ! How can i handle this? Thanks in advance. ...

Limit to number of HTTPService calls that can be made at once

Hello, I have 5 Cairngorm Events that I am dispatching at the same time(one right after the other) - all of which call a separate HTTP Service. This works fine when I run the application locally however when I deploy my project to a Glassfish server, it only works intermittently, with the app hanging when it doesn't work. My temporar...

HTTPService & MySQL & PHP

I can't seem to post needed information to my database, here's what I've got: <mx:HTTPService id="someService" url="http://name.domain/postPHP.php" method="POST"> <s:request xmlns=""> <name>{name.text}</name> <score>{score.text}</score> </s:request> </mx:HTTPService> And of course a button to send(); P...

onResult HTTPService

I have a HTTPService: <mx:HTTPService id="scoreService" url="http://" method="POST" result="onResult(event)"> <s:request xmlns=""> <name>{..}</name> <score>{...}</score> </s:request> </mx:HTTPService> And a script for (event): private function onResult(e:ResultEvent):void { ...

Flex fails to pass parameters to httpservice php script

I am sending two parameters to a php script. The php script works fine if I use the browser to run the script and pass parameters to it like http://www.somewebsite.com/runScript.php?id=aaa&amp;name=bbb. But when I use the Flex httpservice, the parameters are not passed to the script. <s:HTTPService url="http://www.somewebsite.com/runS...

"Default decoder could not decode result"

Here are the files - MXML: <mx:HTTPService id="score" url="http://...score.php" fault="mx.controls.Alert.show(event.fault.faultString)" method="POST" result=""mx.controls.Alert.show(event.result.toString())"> <s:request xmlns=""> <name>{name}</name> <score>{score}</score> </s:requ...

Is it possible to create a separate file for httpservices in flex and what are the best practices

Hi I am new new to flex development. I am building a flex application which uses rest APIs. Right now I have created different for different API calls (login, logout, search etc.) And all these services are in main mxml application file. I am wondering if I can create a separate mxml file like services.mxml that I can use to call any...

how to use request parameter with special character in HTTPService - Flex

Currently I have : <mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)"> <mx:request> <email>{loginUser}</email> <password>{loginPassword}</password> </mx:request> </mx:HTTPService> instead of this I have par...

HTTPService rootURL change between Flex3 and Flex4

Hi everybody, We built an Flex application embbeded in a Oracle PL/SQL page (throw an Oracle DAD) developed with Flex3 SDK. As we have many environnements (development, pre production, training, production), so many DAD, we used to set our HTTPService with relatives paths. For example Development Plateform : Client URL (into IE/Firef...

Using Flex HTTPService to send http POST to webhook

Hi all, 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 (https://api.notifo.com) and to interface with ...