?
Solved

How do i programatically  send a httpService.send

Posted on 2007-11-21
4
Medium Priority
?
2,531 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
3 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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…
LinkedIn blogging is great for networking, building up an audience, and expanding your influence as well. However, if you want to achieve these results, you need to work really hard to make your post worth liking and sharing. Here are 4 tips that ca…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

830 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