You know how when you use the HttpService component you would send flex xml data something like this:
<mx:HTTPService id="userRequest" url="http://localhost/myproj/request_post2.php" useProxy="false" method="POST">
The problem is i need to include <?xml version="1.0"?> together with the request body would you guys tell me how i can do that?
As I always end up getting a syntax error when i try to include it in the <mx:request> body.
My last attempt was this:
var requestXml:XML = new XML('<?xml version="1.0"?><site link="http://localhost:8080/mcfserver/sites/4/config" name="JUnit Test Site" id="4"><config><job>test data</job></config></site>');
saveSiteHttp.request = requestXml;
which didn't work. And this too: saveSiteHttp.request = requestXml.toString();
It always ended up in the backend without the <?xml...> xml tag. Do note i also tried encoding it &%63; and nothing works.
So this is driving me crazy.
How about setting resultFormat="text"?
Thanks for trying to help - but isnt' that attribute used for the "result" of the returned call? So the result format when the http service successfully execute would be "text".
I'm not yet there yet - my problem is in sending the data.
I think I would just add that line on the backend.