There are 2 issues here:

1. Put the crossdomain.xml in the ROOT WebApp of your Tomcat. 
So that this is the URL: 
    http://lp008400:8080/crossdomain.xml

2. In testing, if you run from a file system, you may see errors at runtime. If 
the SWF file is moved from its FlexBuilder 2 bin/ path, it will throw an error. 
If the SWF file is running on HTTP/HTTPS there will be no issue.

Cheers,

Cynergy Systems, Inc.
Theodore Patrick
Sr. Consultant
[EMAIL PROTECTED]
tel: 1.866.CYNERGY
http://www.cynergysystems.com



________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of d93574
Sent: Monday, April 10, 2006 11:58 AM
To: [email protected]
Subject: [flexcoders] Crossdomain.xml with Flex 2 beta 2

I've done most of my development with Flex 1.5 so this was not an issue.  
However I am now working to port some of my flex 1.5 code to Flex 2 Beta.

I have the following web server (tomcat) running on my workstation:

* http://lp008400:8080/OEdbreWeb
* I wrote a simple Flex app that declares a web service
  that acceses the wsdl on this web server:
  <mx:WebService
wsdl="http://lp008400:8080/OEdbreWeb/wsdl/Altedbre.wsdl"; id="ws1"
showBusyCursor="true">

* I added the following crossdomain.xml file to
  http://lp008400:8080/OEdbreWeb

  http://lp008400:8080/OEdbreWeb/crossdomain.xml
  This returns the following xml:
  <?xml version="1.0"?>
  <!DOCTYPE cross-domain-policy SYSTEM  
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
  <cross-domain-policy>
    <allow-access-from domain="*" />
  </cross-domain-policy>

However I still get a sandbox security error when I launch my flex 2
application and it tries to get to the wdsl.

Any insight as to what to do next?  At this stage I'd rather not write
a proxy.  I just want to get to my web service in the simplest way
possible.

Thanks for any help.

Jim Kohn






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


________________________________________
YAHOO! GROUPS LINKS 

*  Visit your group "flexcoders" on the web.
  
*  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
*  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

________________________________________

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/306 - Release Date: 4/9/2006
 


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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to