Write XML File from a flex application back to a rails Server -


I have an XML file, which I want to send to the rail server, I use the following code to do this:

  & lt; In the function triggered by the save button, I do the following: mx: HTTPService id = "dataService" result = "resulthandler (event)" result = "e4x" />  

/ P>

  var params: Object = {}; Paramaze ["xml_file"] = xmlDoc; DataService.method = "POST"; DataService.url = "http: // localhost: 3000 / container"; DataService.send (parameter);  

Unfortunately there is always the problem (see below). If I remove Parameters var, then it runs a GET request ...

[RPC Fault faultString = "HTTP request error" faultCode = "Server.Error.Request" faultDetail = "Error: [ IOErrorEvent Type = "IoError" bubbles = false cancelable = false eventPhase = 2 text = "Error # 2032: Stream-Fehler URL:"]. URL: "]

What could be the problem?

Thanks for any indication! Markus

You are taking the index action of the Flex code your container controller (/ container), but when you Do not send any parameters to the tracks as a verb, please check your development.log file for more details on the error.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -