Hi. Sorry for the repost, but I posted this message yesterday but did not
receive a digest so I don't know if there were any answers.
I'm kind of in a bind, if there was an answer to this yesterday and you
still
have it, could you forward it to me?
Of course, new replies are always welcome.
Thanks.
- Mary
---------------------------------------------------------------
message posted 11/21:
Hi.
How do I do this in CFHTTP - specifically, line 21 - where do you put the
message body?
- Mary (I receive this list as a digest.)
10 <!--- create request XML string to send --->
11 <cfset strCommand = "<?xml version=""1.0""?>" (etc...rest of my xml
request here)>
12
13 <!--- instantiate COM object which will hold parsed data --->
14 <cfobject type="COM"
15 name="xmlReq"
16 class="Microsoft.XMLHTTP"
17 action="CREATE">
18
19 <!--- post the xml data --->
20 <cfset j=xmlReq.setRequestHeader("Content-type", "text/XML")>
21 <cfset j=xmlReq.send(strCommand)>
22 <cfset strXML = xmlReq.ResponseText>
P.S. I've been using XMLHTTP from MSXML as a COM object from within
ColdFusion with success but it gives and Unspecified error message
since we've upgraded to CF 4.5.1.
Allaire has been no help so that's why I thought I'd try replacing the
XMLHTTP call
with a CFHTTP call.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists