RE: [flexcoders] Re: Sending data back

2008-08-13 Thread Tracy Spratt
Yes.  Trace that out to verify it.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 12, 2008 9:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sending data back

 

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 [EMAIL PROTECTED] 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
   
  
 


 



RE: [flexcoders] Re: Sending data back

2008-08-13 Thread Tracy Spratt
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.0quot; encoding=quot;Windows-1252quot; 
standalone=quot;yesquot;?
gt;lt;plandatagt;lt;curtrainblockscarsorderedgt;
lt;train_idgt;496lt;/train_idgt;
lt;locationgt;West Departurelt;/locationgt;
lt;trainsymbolgt;MCCHU 12lt;/trainsymbolgt;
lt;bnumber1gt;470lt;/bnumber1gt;
lt;bnumber1wgt;0lt;/bnumber1wgt;
lt;carsb1gt;89lt;/carsb1gt;
lt;bnumber2gt;Totallt;/bnumber2gt;
lt;bnumber2wgt;0lt;/bnumber2wgt;
lt;carsb2gt;89lt;/carsb2gt;
lt;trainplangt;falselt;/trainplangt;
lt
..

Why  and  are escaped?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, markgoldin_2000 
[EMAIL PROTECTED] 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

   
  
 


 



[flexcoders] Re: Sending data back

2008-08-13 Thread markgoldin_2000
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.0quot; encoding=quot;Windows-
1252quot; 
 standalone=quot;yesquot;?
 gt;lt;plandatagt;lt;curtrainblockscarsorderedgt;
 lt;train_idgt;496lt;/train_idgt;
 lt;locationgt;West Departurelt;/locationgt;
 lt;trainsymbolgt;MCCHU 12lt;/trainsymbolgt;
 lt;bnumber1gt;470lt;/bnumber1gt;
 lt;bnumber1wgt;0lt;/bnumber1wgt;
 lt;carsb1gt;89lt;/carsb1gt;
 lt;bnumber2gt;Totallt;/bnumber2gt;
 lt;bnumber2wgt;0lt;/bnumber2wgt;
 lt;carsb2gt;89lt;/carsb2gt;
 lt;trainplangt;falselt;/trainplangt;
 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
 

   
  
 





[flexcoders] Re: Sending data back

2008-08-12 Thread markgoldin_2000
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, Tracy Spratt [EMAIL PROTECTED] 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:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Tuesday, August 12, 2008 2:49 PM
 To: flexcoders@yahoogroups.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





[flexcoders] Re: Sending data back

2008-08-12 Thread nathanpdaniel
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, 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 flexcoders@yahoogroups.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:[EMAIL PROTECTED] On
  Behalf Of markgoldin_2000
  Sent: Tuesday, August 12, 2008 2:49 PM
  To: flexcoders@yahoogroups.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
 





RE: [flexcoders] Re: Sending data back

2008-08-12 Thread Tracy Spratt
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nathanpdaniel
Sent: Tuesday, August 12, 2008 4:31 PM
To: flexcoders@yahoogroups.com
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 flexcoders@yahoogroups.com 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 flexcoders@yahoogroups.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@yahoogroups.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

  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
 


 



[flexcoders] Re: Sending data back

2008-08-12 Thread nathanpdaniel
 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)



[flexcoders] Re: Sending data back

2008-08-12 Thread markgoldin_2000
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, 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 flexcoders@yahoogroups.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, 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:[EMAIL PROTECTED] On
   Behalf Of markgoldin_2000
   Sent: Tuesday, August 12, 2008 2:49 PM
   To: flexcoders@yahoogroups.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
  
 





RE: [flexcoders] Re: Sending data back

2008-08-12 Thread Tracy Spratt
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nathanpdaniel
Sent: Tuesday, August 12, 2008 5:45 PM
To: flexcoders@yahoogroups.com
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)

 



RE: [flexcoders] Re: Sending data back

2008-08-12 Thread Tracy Spratt
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:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 12, 2008 6:10 PM
To: flexcoders@yahoogroups.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
, 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 flexcoders@yahoogroups.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 , 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@yahoogroups.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 
   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
  
 


 



[flexcoders] Re: Sending data back

2008-08-12 Thread markgoldin_2000
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, Tracy Spratt [EMAIL PROTECTED] 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:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Tuesday, August 12, 2008 6:10 PM
 To: flexcoders@yahoogroups.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
 , 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 , 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 , 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@yahoogroups.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 
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
   
  
 





[flexcoders] Re: Sending data back

2008-08-12 Thread markgoldin_2000
Yes, I did send it.
Here is a fragment of data being sent:
lt;?xml version = quot;1.0quot; encoding=quot;Windows-1252quot; 
standalone=quot;yesquot;?
gt;lt;plandatagt;lt;curtrainblockscarsorderedgt;
  lt;train_idgt;496lt;/train_idgt;
  lt;locationgt;West Departurelt;/locationgt;
  lt;trainsymbolgt;MCCHU   12lt;/trainsymbolgt;
  lt;bnumber1gt;470lt;/bnumber1gt;
  lt;bnumber1wgt;0lt;/bnumber1wgt;
  lt;carsb1gt;89lt;/carsb1gt;
  lt;bnumber2gt;Totallt;/bnumber2gt;
  lt;bnumber2wgt;0lt;/bnumber2wgt;
  lt;carsb2gt;89lt;/carsb2gt;
  lt;trainplangt;falselt;/trainplangt;
  lt
..

Why  and  are escaped?

--- In flexcoders@yahoogroups.com, markgoldin_2000 
[EMAIL PROTECTED] 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, 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:[EMAIL PROTECTED] On
  Behalf Of markgoldin_2000
  Sent: Tuesday, August 12, 2008 6:10 PM
  To: flexcoders@yahoogroups.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
  , 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 , 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 , 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@yahoogroups.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 
 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