Solved

How do i programatically  send a httpService.send

Posted on 2007-11-21
4
2,521 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
Comment Utility
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
Comment Utility
Any luck getting it to work? post your new code if not
0
 
LVL 2

Author Closing Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
A procedure for exporting installed hotfix details of remote computers using powershell
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now