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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "HTTPService not working." Watch "HTTPService not working." New topic

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

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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: HTTPService not working.
Similar Threads
including .js file in JSP
XML Request using HttpClient Response: '400' for url
how to remove 8080 from URL before deployment
passing parameter from non JSF URL to JSF backing bean