TANDICORP
asked on
Security error accessing url-Destination: DefaultHTTP-Channel.Security.Error
Hi, I have the following problem.
I'm working on the subnet 192.168.90.*. I create a flex app with the following code
As you can see, the flex app invokes a web service from http://www.webservicex.net/. I review, and there is a crossdomain file on it (http://www.webservicex.net/crossdomain.xml) allowing access from whichever domain.
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
When I deployed the flex app on the server and I try to access from a browser, I get the following Error:
Security error accessing url-Destination: DefaultHTTP-Channel.Securi ty.Error
I read a lot about security sandbox in flash player, I tried to configure everything but I'm still having the error.
Considerations.
1. The client browser has the IP 192.168.90.16 (Firefox 3.6, Flash Player 10.0.45.2, Windows 7)
2. The server where the flex app was deployed has the IP 192.168.90.53 (Windows Web Server 2008 R2 64bits, IIS 7, Flash Player 10.0.45.2)
3. I have connectivity between the machines and I have access to the web services' WSDL.
4. Both machines, the client and the server are not member of a domain (is it important?)
5. The server machine has the following crossdomain file located at: http://192.168.90.53/crossdomain.xml
<cross-domain-policy>
<site-control permitted-cross-domain-pol icies="all "/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-header s-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
I'll really appreciate your help. I'm very confused...
Thanks in advance.
I'm working on the subnet 192.168.90.*. I create a flex app with the following code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" >
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;
import mx.utils.URLUtil;
private function testWebServiceSuccess(event:ResultEvent):void
{
this.txtValue.text = event.result.toString();
}
private function testWebServiceFault(event:FaultEvent):void
{
Alert.show(event.fault.faultString + "-" +
event.fault.faultDetail + "-" +
event.fault.faultCode, "Error");
}
private function testWebServiceClick():void
{
wsx.ConversionRate("USD","COP");
}
]]>
</mx:Script>
<mx:Text x="92" y="55" text="Value:" id="lblValue"/>
<mx:TextInput x="145" y="53" id="txtValue"/>
<mx:Button x="204" y="83" label="Invoke WS" id="btnInvokeWS" click="testWebServiceClick()"/>
<mx:WebService id="wsx"
wsdl="http://www.webservicex.net/CurrencyConvertor.asmx?wsdl"
showBusyCursor="true">
<mx:operation name="ConversionRate"
resultFormat="object"
result="testWebServiceSuccess(event)"
fault="testWebServiceFault(event)">
</mx:operation>
</mx:WebService>
</mx:Application>
As you can see, the flex app invokes a web service from http://www.webservicex.net/. I review, and there is a crossdomain file on it (http://www.webservicex.net/crossdomain.xml) allowing access from whichever domain.
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
When I deployed the flex app on the server and I try to access from a browser, I get the following Error:
Security error accessing url-Destination: DefaultHTTP-Channel.Securi
I read a lot about security sandbox in flash player, I tried to configure everything but I'm still having the error.
Considerations.
1. The client browser has the IP 192.168.90.16 (Firefox 3.6, Flash Player 10.0.45.2, Windows 7)
2. The server where the flex app was deployed has the IP 192.168.90.53 (Windows Web Server 2008 R2 64bits, IIS 7, Flash Player 10.0.45.2)
3. I have connectivity between the machines and I have access to the web services' WSDL.
4. Both machines, the client and the server are not member of a domain (is it important?)
5. The server machine has the following crossdomain file located at: http://192.168.90.53/crossdomain.xml
<cross-domain-policy>
<site-control permitted-cross-domain-pol
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-header
</cross-domain-policy>
I'll really appreciate your help. I'm very confused...
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, I had the error when I clicked the button. I tried a lot of things but I didn't work so I solved using the BlazeDS proxy.
Thanks for your replies,
Thanks for your replies,
ASKER