aspose file tools*
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
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?
 
wood burning stoves
 
subject: HTTPService not working.