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: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 12, 2008 6:10 PM
To: [email protected]
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 [email protected] <mailto:flexcoders%40yahoogroups.com>
, "nathanpdaniel" <[EMAIL PROTECTED]> 
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 [email protected]
<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 [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