I'm sure we've done it using cfhttp before. What we did was wrap it in cfsetting - enabling cfoutput only (so there is no whitespace generated) and then saved the xml packet to a variable using cfsavecontent. We then used cfhttp to pass it as a form field.
HTH Kola -----Original Message----- From: Colm Brazel [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 18:26 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] XML Format Sory if this is OT. Havea look at http://www.xml.com/ there's stuff there on xforms that might be of interest. The xml stuff is far easier on MX, have a look at and http://www.macromedia.com/desdev/mx/coldfusion/articles/xmlxslt.pdf You might be able to reverse engineer the parsing of xml on cfhttp down to CF5, the info in the xml I gather is accessible through something similar to structure notation Also, http://www.macromedia.com/desdev/mx/coldfusion/articles/wsamazon.html , all of which I must try to get my head around sometime, that pdf though is pretty neat, I`ll maybe have a go at that first. There's a nice download you can unzip and open in studio under the MX server. regards Colm Colm Brazel MA CB Publications www.cbweb.net <http://www.cbweb.net> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -----Original Message----- From: Douglas Humphris [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 17:49 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] XML Format Stephen, Apologies, I don't really know what I'm talking about. :o( I can refer you to the thread that helped me: http://snurl.com/6or see Samuel Neff's answer. I was trying to use CFHTTP to post an xml string in a formfield. That didn't work. Now I'm using: <cfobject name="objXMLHTTP" class="microsoft.xmlhttp" action="create" type="COM"> <cfscript> objXMLHTTP.open("POST","#Attributes.ServerName#",false); objXMLHTTP.setRequestHeader("Content-Type", "text/xml"); objXMLHTTP.send(XMLDataString); </cfscript> and that works a treat. If you can explain why it doesn't work in CFHTTP for CF5, or if you have another solution to this, then please let me know. Cheers, Douglas -----Original Message----- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 17:39 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] XML Format >Just to let you know that I've discovered from the MM forums that you can't do XML posts with > CFHTTP in CF5, so I've resorted to using a COM object to post the data. I'm not sure I follow that..... Your code posts a form variable to a CF page, which takes that variable does something with the contents (a query probably) and generates a bunch of XML. The CFHTTP gets the contents of the page, which happens to be an XML packet, but could be any old rubbish, and does a cfoutput of that in your page. I'm not sure where XML posting comes into it...... What's actually wrong with the format of the "text" you get back from the other server?? Regards Stephen -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
