This content has been marked as final. Show 5 replies
Okay, let's see if I understand the question right.
You're requesting http://192.168.10.4:5050/?serviceProviders=true but crossdomain.xml is getting appended to the request by Flex?
If this is the case then no, flex doesn't do it. A query won't send the crossdomain.xml file contents.
You might want to show some code if this is indeed the problem.
Sorry. I don't think I conveyed the problem properly. I believe in the usual case, if you request for:
and there is a cross domain issue, then flex sends the following GET requests to the HTTP service:
So two different requests, so each can be handled individually. However, what I get is only 1 request, that looks like:
So I cannot deal with the request, since it is asking for both the crossdomain.xml and the serviceProviders at the same time. I have verified this with firebug, and the request is exactly as shown below:
Here is the code that I use to create the HTTP Service
Here is how I make the request:
private function requestServiceProviders() : void
inputParam = new Object;
inputParam.serviceProviders = "true";
Please advise. Thank you.
Okay, I see what's going on strange as it maybe. Frankly, I don't know what to suggest in this case :) Well, maybe you make an explict call to load the file on your application start up like:
Let's see if that helps.
I tried what you mentioned above. Doing so did not quite help since it would still combine the two requests as mentioned above. So I introduced a time delay between the loadPolicyFile call and the request for service providers. This is what happens now:
Which is again somewhat odd. The proxy handled the first call properly, but on the next call I get the usual error which is:
faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP'
I am really not sure what is happening. Part of me is guessing that the proxy is not fast enough at answering the reply, so the two requests get added on top of each other in some sort of buffer, and since the reply to the crossdomain.xml call is not received in time, I get the security error.