Ahhhh right....... I thought you were only passing through a value and not a complete XML packet
CFHTTP has never been the greatest and it sounds like the CF5 version doesn't like passing XML through, or rather it probably doesn't like the greater and less than symbols, and what you get at the other end is junk. Thanks for clarifying what's happening.... Sorry I don't know any more elegant a solution than using a COM object. I'm messing about with some XML at the minute, so just wanted to be sure I wasn't going to run into some sticking point... :o) Stephen ----- Original Message ----- From: "Douglas Humphris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 10, 2002 5:53 PM Subject: RE: [ cf-dev ] XML Format What I mean by "not working" is that the XML string passed through the form field wasn't being parsed as XML. It was in CF4.5. Douglas -----Original Message----- From: Douglas Humphris 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]
