Strictly a coding preference.  In the early days of Flex, there were a
lot of reported problems with non-default contentType, and I established
my back-end technology to handle strings.  It works great and is very
simple.  Passing true XML adds a level of complexity over strings. Might
have other benefits though.

 

All of my free advice comes with a money-back guarantee.

 

Tracy

 

________________________________

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

 

> 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);

Just curious... why would you not advice that? Is it something with 
best practice or just a coding preference? :D (I've done lots where I 
change the content type to XML - so if there's a security issue or 
something along those lines, it'd be helpful! :D)

 

Reply via email to