Dick,
        Yes, you can post most XML packets via an HTML Form.  However, HTML forms
are for people, and people aren't usually the entities posting XML packets.
It is usually a system of some sort that takes data from some other format
(i.e. a database) and creates an XML packet and distributes it.

That being said, if a person was sending you XML data, they would most
likely use an HTML form to POST the data to you.  But to a computer system,
wrapping the XML packet inside a form field would be an unnecessary and
cumbersome layer.

XML isn't something that is incredibly handy for humans to parse through or
build by hand, but it is a great tool when you need to share/syndicate data
between multiple platforms/environments in a system.


---
Paul Mone
Ninthlink Consulting Group
[EMAIL PROTECTED]
http://www.ninthlink.com
619.222.7082


-----Original Message-----
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 3:14 AM
To: CF-Talk
Subject: RE: Reading an XML post


I have only been using CF 5 for about 2 weeks and was unaware of the
GetHTTPRequestData()  function suggested by Paul and Dave Watts...

After reading the docs and experimenting with this function I don't
see what it does for you (in answer to the original question).

As far as I can tell, GetHTTPRequestData() places the XML (the
content of the  form post) in a structure along with several other
items from the http post operation.

Fine!  But what does this buy you over having the XML in a Form
Variable (another structure)?

The XML is in the same format regardless of where it is stored... it
still must be parsed to be useful.

Am I missing something?

TIA

Dick



At 4:43 PM -0700 8/13/01, Paul Mone wrote:
>With CF5, I believe that you use GetHTTPRequestData() to retrieve XML data
>that has been POSTed to a CF template.
>
><cfset requestData = GetHTTPRequestData()>
>
>This function returns a structure, the contents of which you can look up in
>CFStudio inline help.
>
>
>---
>Paul Mone
>Ninthlink Consulting Group
>[EMAIL PROTECTED]
>http://www.ninthlink.com
>619.222.7082
>
>
>-----Original Message-----
>From: Ricardo Villalobos [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 13, 2001 2:35 PM
>To: CF-Talk
>Subject: Reading an XML post
>
>
>Hi,
>
>One of our customers will start sending us orders using XML. They
>basically will post the file to a URL in our web server. Using ASP, I
>can read the contents of the post using Request.BinaryRead. Is there
>anything similar in ColdFusion?
>
>Thanks in advance for your help.
>
>Ricardo Villalobos
>[EMAIL PROTECTED]
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to