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