This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTTPService not working.
 
Similar Threads
java.io.FileNotFoundException: Response: '400' for url
including .js file in JSP
passing parameter from non JSF URL to JSF backing bean
XML Request using HttpClient
how to remove 8080 from URL before deployment