In Flex 3 SDK builds 189998 or later, you should be able to set the
forcePartArrays on the WS operation:

    myWebService.myOperation.forcePartArrays = true;

Regards,
    Pete

P.S. Another issue is for RPC-Encoded operations responses - by default
these decode as an Array, but often you want to reference multiple parts
by name as an Object (note that for document-literal operation responses
Object is the default). From 189998 onwards, the existing behavior was
left as is for backwards compatibility, but you will also be able to
control this by setting for any operation style by setting the
multiplePartsFormat:

    myWebService.myOperation.multiplePartsFormat = "object"; // the
alternative is "array"

 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, December 17, 2007 2:01 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to send Arrays in WebService
request???

On Thu, Dec 13, 2007 at 08:26:17AM -0800, Peter Farland wrote:

> note that Beta 3 was just released). Note that very recently (build
> 189998) further properties were added to the ISOAPDecoder interface to

> provide more control over how possibly-reoccuring result parts are 
> decoded in a response. The existing behavior was preserved, but when 
> we get more details about your response we'll be able to see whether 
> you can take advantage of these settings.

What are these settings and what do they affect?  The behavior where the
webservice call returns an object if it finds a single element versus an
array if it finds multiple elements, for an element whose maxOccurs is
defined as unbounded in the schema, is driving us insane.


-Jeff


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



Reply via email to