I am trying to post an XML payload to an HTTPService that has
additional request parameters (e.g.
http://www.mysite.com/get?o=sponsor&a=save).
I created my HTTPService as such:
<mx:HTTPService
id="getSponsor"
method="POST"
resultFormat="e4x"
result="getResultOK(event)"
fault="getResultFault(event)"
url="http://www.mysite.com/get>
<mx:request>
<o>sponsor</o>
<a>put</a>
</mx:request>
</mx:HTTPService>
And call it like this:
private function addSponsor():void {
getSponsor.send(sponsorModel);
}
With sponsorModel:
<mx:Model id="sponsorModel">
<sponsor>
<id>{txtId}</id>
<name>{tiName}</name>
<imageUrl>{tiImageUrl}</imageUrl>
<linkUrl>{tiLinkUrl}</linkUrl>
</sponsor>
</mx:Model>
It looks like the request parameters are not being sent (I am not
seeing them on the server). Is this supported in Flex 2?
Thanks
Todd