This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Flex and the fly likes HTTPService not working. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "HTTPService not working." Watch "HTTPService not working." New topic
Author

HTTPService not working.

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I have an application where I send an HTTP request using HttpService.send.
It works fine when I run it using FlexBuilder but when I simply open the main.html file in web browser(directly) it stops working.
In this case to Http Request is sent and the application is of no use.

Can anyone tell me the reason. I tried searching but didn't get anything relevant.

My Blog SCJP 5 SCWCD 5
jp roberts
Greenhorn

Joined: Feb 19, 2009
Posts: 14
Is your application build output directed to a web server like xampp?
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I am building it locally and using the files which are in bin-release folder.
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

In my application I am loading data from cross domain and as i searched it needs an corss-domain policy file at the cross/data server.
But in this case the provider is third party and I dont have any control to their files/server.

What can be done to solve this? Can we configure at the client/flex side that which domains are OK to get data?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTPService not working.
 
Similar Threads
java.io.FileNotFoundException: Response: '400' for url
XML Request using HttpClient
passing parameter from non JSF URL to JSF backing bean
how to remove 8080 from URL before deployment
including .js file in JSP