We help IT Professionals succeed at work.
Get Started

Security error accessing url-Destination: DefaultHTTP-Channel.Security.Error

2,861 Views
Last Modified: 2013-11-19
Hi, I have the following problem.

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>

Open in new window


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.Security.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-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>


I'll really appreciate your help. I'm very confused...
Thanks in advance.


Comment
Watch Question
Principal Solutions Architect
CERTIFIED EXPERT
Top Expert 2006
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE