To what I have mostly seen is Flex changes the response structure even when 
converting response from a webservice to Flex object and vice versa, as there 
is an internal conversion of object to xml to send over the wire.
 
recommended would be to use a structure like
 
<NAME> PRD_EQ </NAME>
<STATUS> P </STATUS>
<DETAILS >
<DETAIL >
<MPID> E </MPID>
<Date> 05/20/2007 </DATE>
</DETAIL>
<DETAIL >
<MPID> OD </MPID>
<Date> 04/20/2007 </DATE>
</DETAIL>
</DETAILS >

 which would be quite easy to create an object and fill in values to pass to 
the webservice, which would automatically serialize it,
and u can have a class having properties for the following
 
var Name:String
var Status:String
var Details:ArrayCollection // of type Detail
 
class Detail -->
var MPID:String
var Date: String or whatever
 
 
Best Regards, 

Nikhil 

"il n'y a rien tel que noir ou blanc, toutes sont différentes dégradés de gris" 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Parthasarathy, Balavinayakam
Sent: Tuesday, May 22, 2007 12:57 AM
To: [email protected]
Subject: [flexcoders] Adobe flex2 Web service



        I would to like if any one have used a array kind of tags or a Sequence
        in sending the request from Adobe Flex2 to a Web service.
        
        Example : 
        
        In the request Tag.
        <NAME> PRD_EQ </NAME>
        <STATUS> P </STATUS>
        <DETAIL >
        <MPID> E </MPID>
        <Date> 05/20/2007 </DATE>
        </DETAIL>
        <DETAIL >
        <MPID> OD </MPID>
        <Date> 04/20/2007 </DATE>
        </DETAIL>
        
        Regards,
        
        Bala
        
        

         

Reply via email to