Yes.
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you setting the method="POST"?
> 
> Tracy
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, August 12, 2008 10:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Sending data back
> 
>  
> 
> Yes, I did send it.
> Here is a fragment of data being sent:
> &lt;?xml version = &quot;1.0&quot; encoding=&quot;Windows-
1252&quot; 
> standalone=&quot;yes&quot;?
> &gt;&lt;plandata&gt;&lt;curtrainblockscarsordered&gt;
> &lt;train_id&gt;496&lt;/train_id&gt;
> &lt;location&gt;West Departure&lt;/location&gt;
> &lt;trainsymbol&gt;MCCHU 12&lt;/trainsymbol&gt;
> &lt;bnumber1&gt;470&lt;/bnumber1&gt;
> &lt;bnumber1w&gt;0&lt;/bnumber1w&gt;
> &lt;carsb1&gt;89&lt;/carsb1&gt;
> &lt;bnumber2&gt;Total&lt;/bnumber2&gt;
> &lt;bnumber2w&gt;0&lt;/bnumber2w&gt;
> &lt;carsb2&gt;89&lt;/carsb2&gt;
> &lt;trainplan&gt;false&lt;/trainplan&gt;
> &lt
> ......
> 
> Why < and > are escaped?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "markgoldin_2000" 
> <markgoldin_2000@> wrote:
> >
> > I will try but here is a question:
> > I need to send data from DG. So, I am sending 
> > DG.dataProvider.toXMLString().
> > Is that right?
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <tspratt@> 
wrote:
> > >
> > > Can you debug RequestObject to see what it contains?
> > > 
> > > 
> > > 
> > > What is your back-end platform? The code looks like classic asp.
> > > 
> > > 
> > > 
> > > If so then I would pass a string from flex as in my perv post, 
> then 
> > do:
> > > 
> > > Dim sXML = Request("xmlstring") 'will work for either post or 
get 
> > args
> > > 
> > > 'you could debug the string here to see if it has your xml in it
> > > 
> > > ...
> > > 
> > > oDom.loadXML(sXML)
> > > 
> > > 
> > > 
> > > Again, you *should* be able to use XML instead of string, but 
is 
> > seems
> > > harder.
> > > 
> > > 
> > > 
> > > Tracy
> > > 
> > > ________________________________
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> ] On
> > > Behalf Of markgoldin_2000
> > > Sent: Tuesday, August 12, 2008 6:10 PM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> 
> > > Subject: [flexcoders] Re: Sending data back
> > > 
> > > 
> > > 
> > > Yes, I would want that working.
> > > I am trying to extract am XML on the server using Request 
object 
> > and 
> > > I have done that before but somehow it does not work.
> > > oDom = createobject("Msxml2.FreeThreadedDOMDocument")
> > > oDom.load(RequestObject)
> > > but oDom.xml is empty.
> > > Any idea?
> > > 
> > > Thanks
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> > 40yahoogroups.com>
> > > , "nathanpdaniel" <ndaniel@> 
> > > wrote:
> > > >
> > > > 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 flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> , "markgoldin_2000" 
> > > > <markgoldin_2000@> 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 flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > <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: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> 
> > > > > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> ] On
> > > > > > Behalf Of markgoldin_2000
> > > > > > Sent: Tuesday, August 12, 2008 2:49 PM
> > > > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > <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