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:
> <?xml version = "1.0" encoding="Windows-
1252"
> standalone="yes"?
> ><plandata><curtrainblockscarsordered>
> <train_id>496</train_id>
> <location>West Departure</location>
> <trainsymbol>MCCHU 12</trainsymbol>
> <bnumber1>470</bnumber1>
> <bnumber1w>0</bnumber1w>
> <carsb1>89</carsb1>
> <bnumber2>Total</bnumber2>
> <bnumber2w>0</bnumber2w>
> <carsb2>89</carsb2>
> <trainplan>false</trainplan>
> <
> ......
>
> 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
> > > > > >
> > > > >
> > > >
> > >
> >
>