Dear all,

I need to call an HTTPService with POST method but I need to transfer
some GET parameters too. The tricky part ist, that the GET parameters
are transmitted as arrays.

Can anyone help me in order to build the correct HTTPService?

Currently I am using this code but this one sends everything as POST
params to the service:

        <mx:HTTPService
                method="GET"
                id="jsonRequest2"
                resultFormat="text"
                showBusyCursor="true"
                result="handleResult(event)"
                url="http://my.url/service";
                >
                        <mx:request>
                                <method>getMessage</method>
                                <params>{params}</params> <!-- Should be GET -->
                                
<preferedMainTextPartTypes>{mainTypes}</preferedMainTextPartTypes>
<!-- Should be GET -->
                        </mx:request>
                        
        </mx:HTTPService>

The params are built in this way:

        [Bindable]
        private var params:Object = {folder:"INBOX.Drafts",
getHeaderFields:1, mainTextPartProcessing:"html", uid:1592};
        [Bindable]
        private var mainTypes:Object = {0:"html", 1:"plain"};

Any help highly appreciated!

Thanks in advance

Reto

Reply via email to