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">
>          <cfoutput><br><br><h4>Content 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

Reply via email to