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