Roman, have you read
http://livedocs.adobe.com/flex/201/langref/mx/rpc/http/mxml/HTTPService.html?
(that link explains the difference between setting useProxy to true or to
false)

I had the same situation and I solved it using a proxy.php (downloaded from
Adobe) with the final url (the one without crossdomain.xml) hardcoded in it.

While instanciating the HTTPService I set the url to the proxy.php location.


It works great that way

Hope it helps

Osvaldo

On 3/23/07, Peter Farland <[EMAIL PROTECTED]> wrote:

 If you set useProxy="true" WebService will generated an
HTTPRequestMessage as it is expecting to communicate with the FDS
ProxyService which runs on a messaging backbone. The format of the message
depends on the ChannelSet assigned to the WebService (or the defaults set
for the DefaultHTTPS destination for secure URLs in services-config.xml).
Instead of trying to deserialize an HTTPRequestMessage I think you should
leave useProxy="false" (the default, btw) and just set the URL to your own
custom proxy.

 ------------------------------
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *rzilist
*Sent:* Friday, March 23, 2007 4:46 PM
*To:* [email protected]
*Subject:* [flexcoders] How to use Proxy script with Flex WebService?

 Hi folks,
I'm consuming a webservice from secured domain which with no
crossdomain.xml file at server root. To get around the "Security error
accessing url" message, and as the only feasible solution, I wrote a
proxy script in .NET and uploaded to the IIS server hosting the swf.
Now, when I try to use the proxy script specifying useProxy="true" I
get an error saying "File Not Found". How would I go about invoking
my proxy script? I've tried the same way I do with Webservice, but all
in vain. Please help.
Thanks,
Roman



Reply via email to