Solved

How do i programatically  send a httpService.send

Posted on 2007-11-21
4
2,525 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
convert array collection to string. The array has excess information. 22 2,081
transparent background on a spark spinnerlist? 6 1,001
check for non negative number 2 450
parse string in as3 2 345
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…
This article was originally published on Monitis Blog, you can check it  here .   Some years back, I worked as the CTO.  During my tenure, I had a head of IT support reporting to me.  He did his job quite well and had a commendable sense of duty…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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