try this a one line then see. <cfset variables.XML = "<?xml version='1.0' encoding='ISO-8859-1'?><!DOCTYPE PORTAL SYSTEM'http://127.0.0.1:8090/servlet/media/xml/api/request.dtd'><PORTAL TransId='test'><AUTH><LOGIN Username='admin' Password='admin'/></AUTH><QUERY RefId='getusername'><USER ObjectKey='u310346'><FIELD Name='Username'/><FIELD Name='LastName'/><FIELD Name='FirstName'/><FIELD Name='Email'/><FIELD Name='Groups'/></USER></QUERY></PORTAL>">
----- Original Message ----- From: "KNOTT, Brian" <[EMAIL PROTECTED]> To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Friday, March 26, 2004 3:29 PM Subject: [cfaussie] Re: XML > Tried that Garry. I've posted the code blow if anyone wants tosee. > > <cfset variables.XML = '<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE > PORTAL SYSTEM > "http://127.0.0.1:8090/servlet/media/xml/api/request.dtd"><PORTAL > TransId="test"><AUTH><LOGIN Username="admin" Password="admin"/></AUTH><QUERY > RefId="getusername"><USER ObjectKey="u310346"><FIELD Name="Username"/><FIELD > Name="LastName"/><FIELD Name="FirstName"/><FIELD Name="Email"/><FIELD > Name="Groups"/></USER></QUERY></PORTAL>'> > > > <!--- send http request ---> > <cfhttp method="post" url="http://mmis010:8090/servlet/portal/admin/xmlproc" > username="admin" password="admin"> > <cfhttpparam type="formfield" name="XML" value='#variables.XML#'> > </cfhttp> > > > -----Original Message----- > > From: G A R Y C R O U C H [ A I T ] [SMTP:[EMAIL PROTECTED] > > Sent: Friday, 26 March 2004 15:11 > > To: CFAussie Mailing List > > Subject: [cfaussie] Re: XML > > > > I've experienced the sae issues trying to submit XML via a form field in > > CFHTTP, > > The fix for me was to remove all chars that were not plain text including > > any carriage returns, tabs etc. > > > > Fixed the problem but the result at the other end dint look very nice as > > one > > long line. > > > > Then the result was never sent to a Human so didn't really matter to me, I > > think though that to be correct XML > > the positioning of the tags, indentation are conventions that are to be > > followed. > > > > GC > > > > ----- Original Message ----- > > From: "KNOTT, Brian" <[EMAIL PROTECTED]> > > To: "CFAussie Mailing List" <[EMAIL PROTECTED]> > > Sent: Friday, March 26, 2004 2:54 PM > > Subject: [cfaussie] Re: XML > > > > > > > Sean, > > > I have an done a dump of the page that is used to test portal. From > > > this dump I can get a the form to a submit an XML file via a textarea > > field > > > using onload(submit()). I can't seem to convert this cfhttp. I have a > > > cfhttp tag with a cfhttpparam tag for the form field but it does not > > seem > > to > > > send the correct information. > > > > > > Brian > > > > > > > -----Original Message----- > > > > From: Sean A Corfield [SMTP:[EMAIL PROTECTED] > > > > Sent: Friday, 26 March 2004 11:55 > > > > To: CFAussie Mailing List > > > > Subject: [cfaussie] Re: XML > > > > > > > > On Mar 25, 2004, at 5:01 PM, KNOTT, Brian wrote: > > > > > Ok Guys I can get CF to create an XML document via the CFXML tag. > > My > > > > > question is how do I submit this document to an XML server. The > > > > > following > > > > > document will return information on a particular user. Our portal > > has > > > > > an > > > > > XML interface that we can submit an XML document to. I'm just not > > > > > sure how > > > > > I go about this. Should I use cfhttp. > > > > > > > > CFXML creates an "XML document" which is a structure. Some XML servers > > > > actually want simple text, some want the XML as a "soapElement". It's > > > > really going to depend on the server you are trying to communicate > > > > with. CFHTTP should do the job either way - once you know what you're > > > > really trying to do... > > > > > > > > Regards, > > > > Sean > > > > > > > > > > > > --- > > > > You are currently subscribed to cfaussie as: > > [EMAIL PROTECTED] > > > > To unsubscribe send a blank email to > > > > [EMAIL PROTECTED] > > > > > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > > > > http://www.mxdu.com/ + 24-25 February, 2004 > > > > > > > > > > > -------------------------------------------------------------------------- > > --------- > > > > > > The contents of this message are the views of the Author and do not > > necessarily reflect the views of SUNCORP METWAY LTD ABN 66 010 831 722. > > > > > > The content of this e-mail, including attachments is a confidential > > communication between the Suncorp Metway Group and the intended addressee. > > Any unauthorised use of the contents is expressly prohibited. If you have > > received this e-mail in error please contact the sender immediately and > > then > > delete the message and any attachment(s). > > > > > > http://www.suncorp.com.au > > > > > > > > > --- > > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > > > To unsubscribe send a blank email to > > [EMAIL PROTECTED] > > > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > > > http://www.mxdu.com/ + 24-25 February, 2004 > > > > > > > > > --- > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > > To unsubscribe send a blank email to > > [EMAIL PROTECTED] > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > > http://www.mxdu.com/ + 24-25 February, 2004 > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
