RE: Reading an XML post

2001-08-15 Thread Dick Applebaum

Paul

Thanks for the response, but I am unclear on a few things:

Apparently the GetHTTPRequestData() allows you to access an XML 
(SOAP) packet that has been sent to you in an HTTP header... 
eliminating the need for a form post.

If I wanted to code both ends of this application to application 
transmission in CF 5:

   how would the sender create the HTTP header to be sent to the receiver?

   how would the sender send it to the receiver?

   how would the receiver create a response header?  cfheader?

   how would the receiver return the response?

Are there any references or examples of doing both ends of this with CF?

TIA

Dick



At 8:12 PM -0700 8/14/01, Paul Mone wrote:
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



RE: Reading an XML post

2001-08-15 Thread Dave Watts

 Thanks for the response, but I am unclear on a few things:
 
 Apparently the GetHTTPRequestData() allows you to access an XML 
 (SOAP) packet that has been sent to you in an HTTP header... 
 eliminating the need for a form post.
 
 If I wanted to code both ends of this application to application 
 transmission in CF 5:
 
how would the sender create the HTTP header to be sent to 
 the receiver?
 
how would the sender send it to the receiver?
 
how would the receiver create a response header?  cfheader?
 
how would the receiver return the response?
 
 Are there any references or examples of doing both ends of 
 this with CF?

When you use HTTP as a SOAP transport mechanism, the SOAP envelope is
typically placed not within an HTTP header, but within the body of an HTTP
POST request. Here's what that might look like:

POST /team/webcontrols/mathservice.asmx HTTP/1.0
SOAPAction: http://tempuri.org/Add
Content-Type: text/xml
Referer: http://localhost/soap/dhtmlclient/mathservicedemo.html
Content-Length: 476
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows.NT.5.0)
Host: www.fmexpense.com
Connection: Keep-Alive
Pragma: no-cache

?xml version='1.0'?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;
SOAP-ENV:Body
Add xmlns='http://tempuri.org/'
a xsi:type=xsd:int
SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
5
/a
b xsi:type=xsd:int
SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
3
/b
/Add
/SOAP-ENV:Body
/SOAP-ENV:Envelope

The problem with reading the body of the POST prior to CF 5 is that it's
expecting typical form variable encoding - name-value pairs.

For some incredibly oversimplified sample code, you might look here:
http://www.figleaf.com/figleafhome/cfug/2001/CFUGJun2001/jun2001.zip

This contains two SOAP topics covered at the June DC-CFUG, as well as some
other stuff. Next month, I'm doing a follow-up SOAP topic with more
worthwhile code samples.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
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



RE: Reading an XML post

2001-08-15 Thread Dick Applebaum

At 10:46 AM -0400 8/15/01, Dave Watts wrote:

For some incredibly oversimplified sample code, you might look here:
http://www.figleaf.com/figleafhome/cfug/2001/CFUGJun2001/jun2001.zip

This contains two SOAP topics covered at the June DC-CFUG, as well as some
other stuff. Next month, I'm doing a follow-up SOAP topic with more
worthwhile code samples.


Thanks Dave,  Nice presentation. It answers most of my questions (and 
several I hadn't asked)!

As a favor, post to cf-talk when the next presentation on the subject 
is available

TIA

Dick

~~
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



RE: Reading an XML post

2001-08-14 Thread Dick Applebaum

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



RE: Reading an XML Post

2001-08-14 Thread Ricardo Villalobos

David,

Thank you, this is what I needed. Due to budget limitations I have to
find a way to do this with ColdFusion 4.0. Any ideas on how to read an
HTTP Post without using form variables, CFHTTP or CFFILE? (Remember, our
customer is sending the XML file as an HTTP post)

Thanks again for your help and for all the previous responses.

Ricardo Villalobos
Dimasys, Inc.


 Date: Mon, 13 Aug 2001 19:27:48 -0400
 From: Dave Watts [EMAIL PROTECTED]
 Subject: RE: Reading an XML post
 Message-ID: 
 [EMAIL PROTECTED]
 
  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?
 
 Yes, in CF 5 you can use the GetHTTPRequestData function to 
 read the body of
 an HTTP POST received by CF. Unfortunately, in previous 
 versions there's
 nothing analogous to that. There are workarounds, but none of them are
 especially palatable.
 
 David T Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 phone: (202) 797-5496
 fax: (202) 797-5444
 
 ~~


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



RE: Reading an XML Post

2001-08-14 Thread Dave Watts

 Thank you, this is what I needed. Due to budget limitations I 
 have to find a way to do this with ColdFusion 4.0. Any ideas 
 on how to read an HTTP Post without using form variables, CFHTTP 
 or CFFILE? (Remember, our customer is sending the XML file as 
 an HTTP post)

Unfortunately, the answer is, it depends. If you have any control over
what the customer will post, you might be able to have them rework it so
that it follows the traditional format for posted data within a form - that
is, simply sticking something like this in front of the XML body of the POST
request:

myvar=

That's a crappy solution, though, even if it does work. As an alternative,
you might use something other than CF to receive the POST request - I've
used ASP in the past for this. I don't think there's much else you can do.
I'm just glad they've addressed this in CF 5 - I could do this with ASP when
it came out.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
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



RE: Reading an XML post

2001-08-14 Thread Paul Mone


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



RE: Reading an XML post

2001-08-13 Thread Zac Belado

 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?

You could use CFFile if it is a local asset or, perhaps easier, use CFHTTP
to laod the contents of the file


~~
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



RE: Reading an XML post

2001-08-13 Thread Billy Cravens

Read it using CFFile type=upload.  You can then parse it using the
MSXML object.

---
Billy Cravens
HR Systems, EDS
[EMAIL PROTECTED]


-Original Message-
From: Zac Belado [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 13, 2001 4:57 PM
To: CF-Talk
Subject: RE: Reading an XML post


 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?

You could use CFFile if it is a local asset or, perhaps easier, use
CFHTTP to laod the contents of the file
~~
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



RE: Reading an XML post

2001-08-13 Thread Shawn Grover

hmmm  If you can get them to send you a WDDX file (which is just a standard
packaging DTS for XML), then you can use CFHTTP to read the file contents
into a variable, run the WDDX2CFM function to convert it into a recordset
for you, then use it as a plain jane Cold Fusion recordset.  

I've done this with MoreOver.Com's news feeds.. works great.

Best of Luck.

Shawn Grover

-Original Message-
From: Ricardo Villalobos [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 3: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



RE: Reading an XML post

2001-08-13 Thread Dick Applebaum

If you have the ability to write the URL page they are posting to it 
is very simple...

   cfsetting EnableCFOutputOnly=Yes

   cfif IsDefined(Form.XMLInput)

 cftry
   cf_XmlToFromStruct
 action=XML2Struct input=#Form.XMLInput# output=structXMLIn
   cfcatch type=any
 cfoutputbrbrh4Content received from User was not an XML packet,
   program aborted!/h4/cfoutput
 cfdump var=#Form.XMLInput#
 cfabort
   /cfcatch
 /cftry


 !--- The XML packet (if valid) can be processed in structXMLIn ---

 cfdump var=#structXMLIn#

   cfelse

 cfsetting EnableCFOutputOnly=No

 FORM NAME=myform  METHOD=POST
   TEXTAREA NAME=XMLInput COLS=80 ROWS=20/TEXTAREA
 /FORM

   /cfif

The cf_XmlToFromStruct tag can be found in the Allaire tag gallery.

HTH

Dick

At 2:57 PM -0700 8/13/01, Zac Belado wrote:
   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?

You could use CFFile if it is a local asset or, perhaps easier, use CFHTTP
to laod the contents of the file



~~
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



RE: Reading an XML post

2001-08-13 Thread Hinojosa, Robert A

A similar tag which is newer and has more features is the SOXML tag.

which can be found at 

http://www.siteobjects.com/index.cfm?fuseAction=showProducts



-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 5:45 PM
To: CF-Talk
Subject: RE: Reading an XML post


If you have the ability to write the URL page they are posting to it 
is very simple...

   cfsetting EnableCFOutputOnly=Yes

   cfif IsDefined(Form.XMLInput)

 cftry
   cf_XmlToFromStruct
 action=XML2Struct input=#Form.XMLInput# output=structXMLIn
   cfcatch type=any
 cfoutputbrbrh4Content received from User was not an XML
packet,
   program aborted!/h4/cfoutput
 cfdump var=#Form.XMLInput#
 cfabort
   /cfcatch
 /cftry


 !--- The XML packet (if valid) can be processed in structXMLIn ---

 cfdump var=#structXMLIn#

   cfelse

 cfsetting EnableCFOutputOnly=No

 FORM NAME=myform  METHOD=POST
   TEXTAREA NAME=XMLInput COLS=80 ROWS=20/TEXTAREA
 /FORM

   /cfif

The cf_XmlToFromStruct tag can be found in the Allaire tag gallery.

HTH

Dick

At 2:57 PM -0700 8/13/01, Zac Belado wrote:
   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?

You could use CFFile if it is a local asset or, perhaps easier, use CFHTTP
to laod the contents of the file



~~
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



RE: Reading an XML post

2001-08-13 Thread Dick Applebaum

Yeah, I tried that tag first, but there were problems... it was 
inserting extraneous value.../value tags.

the XML2Struct is cleaner  no garbage is genertated,

Dick

At 6:55 PM -0400 8/13/01, Hinojosa, Robert A wrote:
A similar tag which is newer and has more features is the SOXML tag.

which can be found at

http://www.siteobjects.com/index.cfm?fuseAction=showProducts



-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 5:45 PM
To: CF-Talk
Subject: RE: Reading an XML post


If you have the ability to write the URL page they are posting to it
is very simple...

cfsetting EnableCFOutputOnly=Yes

cfif IsDefined(Form.XMLInput)

  cftry
cf_XmlToFromStruct
  action=XML2Struct input=#Form.XMLInput# output=structXMLIn
cfcatch type=any
  cfoutputbrbrh4Content received from User was not an XML
packet,
program aborted!/h4/cfoutput
  cfdump var=#Form.XMLInput#
  cfabort
/cfcatch
  /cftry


  !--- The XML packet (if valid) can be processed in structXMLIn ---

  cfdump var=#structXMLIn#

cfelse

  cfsetting EnableCFOutputOnly=No

  FORM NAME=myform  METHOD=POST
TEXTAREA NAME=XMLInput COLS=80 ROWS=20/TEXTAREA
  /FORM

/cfif

The cf_XmlToFromStruct tag can be found in the Allaire tag gallery.

HTH

Dick

At 2:57 PM -0700 8/13/01, Zac Belado wrote:
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?

You could use CFFile if it is a local asset or, perhaps easier, use CFHTTP
to laod the contents of the file




~~
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



RE: Reading an XML post

2001-08-13 Thread Dick Applebaum

BTW, If you want some help processing/manipulating the XML, see:

   http://torchbox.com/xml/toolkit.cfm

This a great little set of tools that let you manipulate XML with CF-like tags.

Dick




-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 5:45 PM
To: CF-Talk
Subject: RE: Reading an XML post


If you have the ability to write the URL page they are posting to it
is very simple...

cfsetting EnableCFOutputOnly=Yes

cfif IsDefined(Form.XMLInput)

  cftry
cf_XmlToFromStruct
  action=XML2Struct input=#Form.XMLInput# output=structXMLIn
cfcatch type=any
  cfoutputbrbrh4Content received from User was not an XML
packet,
program aborted!/h4/cfoutput
  cfdump var=#Form.XMLInput#
  cfabort
/cfcatch
  /cftry


  !--- The XML packet (if valid) can be processed in structXMLIn ---

  cfdump var=#structXMLIn#

cfelse

  cfsetting EnableCFOutputOnly=No

  FORM NAME=myform  METHOD=POST
TEXTAREA NAME=XMLInput COLS=80 ROWS=20/TEXTAREA
  /FORM

/cfif

The cf_XmlToFromStruct tag can be found in the Allaire tag gallery.

HTH

Dick

At 2:57 PM -0700 8/13/01, Zac Belado wrote:
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?

You could use CFFile if it is a local asset or, perhaps easier, use CFHTTP
to laod the contents of the file




~~
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



RE: Reading an XML post

2001-08-13 Thread Dave Watts

 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?

Yes, in CF 5 you can use the GetHTTPRequestData function to read the body of
an HTTP POST received by CF. Unfortunately, in previous versions there's
nothing analogous to that. There are workarounds, but none of them are
especially palatable.

David T Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: (202) 797-5496
fax: (202) 797-5444

~~
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



RE: Reading an XML post

2001-08-13 Thread Paul Mone

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