If your deployed application will sit on a different host from the web service implementations, the web services host will have to have a crossdomain.xml file allowing access from the host your app is downloaded from.  You can open it up to the world with * as well if you're not concerned about other Flash based applications hitting those services. I would personally limit it.  If the web service implementations and application will both come from the same host, you do not need a crossdomain.xml file. It could be that the absolute URL you are using doesn't match the exact string name of the host used at runtime...even though both hosts might resolve to the same IP.
 
 
Carson

____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of efeminella
Sent: Monday, July 10, 2006 9:56 AM
To: [email protected]
Subject: [flexcoders] Using WebServers in Flex 2.0

I am building an application in Flex 2.0 which requires loading a wsdl
and calling methods on the wsdl. I have been doing this in Flex 1.5
for along time as well.

When running locally the wsdl loads and I am able to call methods
successfully but once deployed to a webserver outside of the domain of
the endpoint I get a security error: Channel.Security.Error

I am not sure how to resolve this error or if I need to use a
cross-domain policy file, etc?

Below is a simple example of the .mxml:
<mx:WebService id="wsdl"
wsdl="http://mywsdlurl?wsdl"
useProxy="false"
fault="e.trace(event.fault.toString())"
load="e.trace(event.toString());"
showBusyCursor="true" >
<mx:operation name="getTextRule"
result="this.handler.setSelectedTextRule(event.result.ruleText);">
<mx:request>
<payload>TextRule_4</payload>
</mx:request>
</mx:operation>
</mx:WebService>

If anyone could assist me I would be greatful.

Thanks,
Eric Feminella

Also: what happened to the network monitor in Flex 2.0? Is it still
available?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to