I don't advise that, though it will work.  What I meant was to send the
whole xml in a single parameter:

var sXml:String = _xmlBigDataCreatedSomewhereElse.toXMLString();

var oRequest:Object = {xmlstring: sXml }

myHttpService.send(oRequest);

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nathanpdaniel
Sent: Tuesday, August 12, 2008 4:31 PM
To: [email protected]
Subject: [flexcoders] Re: Sending data back

 

My suggestion would be to change the content type 
to "application/xml" - then it post XML to the server. :D No name 
value pairs needed for that.. Examples:
AS3: 
var http:HTTPService = new HTTPService();
http.url = serverURL;
http.contentType = "application/xml";

MXML:
<mx:HTTPService url="{serverURL}" contentType="application/xml" />

That's of course in general terms - you'd have to add code to each to 
really make it work properly... 

Hope this helps!
-Nathan D.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "markgoldin_2000" 
<[EMAIL PROTECTED]> wrote:
>
> Yes, I am using HTTPService.
> But I cannot use name=value pair. My XML has a complex structure 
that 
> cannot be broken into a simple name=value pair.
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <tspratt@> wrote:
> >
> > You typically use one of the three RPC protocols. The easiest 
way 
> to
> > send an xml string is to use the HTTPService RPC protocol. Leave 
> the
> > default contentType, and send the xml string in a name=value pair 
> in the
> > request object.
> > 
> > Tracy
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected]
<mailto:flexcoders%40yahoogroups.com>  
> [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com> ] On
> > Behalf Of markgoldin_2000
> > Sent: Tuesday, August 12, 2008 2:49 PM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com>

> > Subject: [flexcoders] Sending data back
> > 
> > 
> > 
> > How exaclty is Flex sending data back?
> > Is it possible to send an XML string back to server so I can 
> restore it 
> > there into an xml string?
> > 
> > Thanks
> >
>

 

Reply via email to