Solved

How do i programatically  send a httpService.send

Posted on 2007-11-21
4
2,524 Views
Last Modified: 2012-06-27
i have a flex 3 web app and a class with the following function attached



but when i run this i allways get the error
[MessagingError message='Destination 'php/serve.php' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']

public function SavetoSQL() : void {
			var params:Object = {};
			params["action"] = "savedefaulttourdata";
			
			var service : HTTPService = new HTTPService();
			service.destination = "php/serve.php";
            service.method = "POST";
            service.addEventListener("result", httpResult);
            service.addEventListener("fault", httpFault);
            service.send(params);
 
		}

Open in new window

0
Comment
Question by:Robinsonx6
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 20333382
Try setting destination to a fully qualified address eg:
service.destination = "http://www.yourserver.com/php/serve.php";
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20337461
Any luck getting it to work? post your new code if not
0
 
LVL 2

Author Closing Comment

by:Robinsonx6
ID: 31410523
sorry for the delay i have been off work for some time due to a tuma in the old engine
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flex Mobile: Way to list my local shared objects? 6 270
Port 4000 issue 1 1,936
labelFunction 3 281
how to edit swc file 3 562
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question