RE: [flexcoders] crossdomain file on an app server

2007-08-28 Thread Peter Farland

Note you can alternatively deploy a crossdomain.xml file in your WAR
using a non-default context and then get your SWF to load the policy
file from this custom location (instead of relying on the default
location of the webroot). 

http://livedocs.adobe.com/flex/2/langref/flash/system/Security.html#load
PolicyFile()

Otherwise, you'll need a WAR file deployed with the default context of
the empty string in order to get a URL of /context-root. Many web
application servers have a mechanism of doing this.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brent Smith
Sent: Tuesday, August 28, 2007 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] crossdomain file on an app server

Hello,

I have been having issues with an HTTPService I'm trying to use to hit a
java servlet running on websphere. When I use GETs everything seems to
function, but when I use a POST I get a 2032 ERROR. I've heard that
sometimes a POST will need a crossdomain file where a GET may not.

We are deploying the swf as part of the EAR file and no matter where we
seem to put the crossdomain.xml it seems to return the same error. 
I know that you put it in the web root of a web server but I can't seem
to find where.

It is of course possible that there is simply something wrong with the
way I'm constructing my POST, here is an example:

Service Definition:

mx:HTTPService id=setService
url=http://server.com:7000/AeGui/AeGuiServlet;
result=event.token.resultHandler( event );
fault=event.token.faultHandler( event );
method=POST
useProxy=false 
/mx:HTTPService

In my Delegate:

this._service =
ServiceLocator.getInstance().getHTTPService( setService ) as
HTTPService; this._responder = responder;

var sendData:Object = {id: String(_data.ID), description: 
_data.description, action: _data.action, screen:notables};

var token : AsyncToken = _service.send(sendData); token.resultHandler =
_responder.result; token.faultHandler = _responder.fault;

Any help would be greatly appreciated.

Thanks,

Brent


 



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





RE: [flexcoders] CrossDomain file

2006-03-03 Thread Carson Hager
Where do you have crossdomain.xml?  What are its contents?


Carson


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


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mvbaffa
Sent: Friday, March 03, 2006 7:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CrossDomain file

Hi All,

I am using Flex 2 Beta 1.

I need to host my swf files in a domain different from the one that 
reside my webservices. In fact the webservice is installed in my 
office webserver and I have created at DynDNS to point to my server.

I have uploaded the swf compiled by Flex 2 and at the Windows 
Server, that host my webservices, I have a crossdomain.xml file to 
allow the flex application to access the webservices.

When I browse the swf an it tries to access my webservice it gives a 
Fault event stating that it could not find my service. 

The error occurs even when I turn off my Windows Firewall.

Is There any special procedure related to the crossdaomain.xml 
file 

Thanks in Advance
Baffa






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



 




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