How did you get around this issue in Flex 1.5?  Flex 1.5's server had 
built-in proxying.  Are you using this in Flex 2?  If not:

- utilize a proxy script.  Usually just 1 line of code in PHP or even ASP 
for example.  This server-side script resides on the same domain the SWF is 
on, and you call the proxy script instead of the actual server with the 
WSDL.  The proxy script will fetch the WSDL for you.

- utilize a cross-domain.xml file, like you mentioned.  This file will need 
to reside on the domain where the WSDL is.

----- Original Message ----- 
From: "efeminella" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 10, 2006 12:56 PM
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
Yahoo! Groups Links








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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