I am attempting to set up a CF test page to post a XML data stream to
another CF page that will receive it. I have the code written to parse the
data into a complex array and post to our SQL database. I did this by
reading in a local file. What I am having difficulty doing is setting up a
'real world' scenario for testing. I've looked at several examples in the
forums on the subject (didn't find an abundance of material) and attempted
to use MSXML.DLL XMLHTTP.open "POST" action to initiate the transfer. I
receive the following error with the following code:
The error occurred while processing an element with a general identifier of
(CFSCRIPT), occupying document position (10:1) to (10:10) in the template
file D:\Domains\Jupiter\test2.cfm.
Note: Line 10 starts the CFSCRIPT
<!--- XML String to pass --->
<cfset xml_str<Snip> --- XML Data--- <Snip> or I even could load the file
using CFFile Read...Same problem">
<!--- ActiveX objects used to open a client connection and send doc --->
<cfobject type="COM" name="xmlDoc" class="Microsoft.XMLDOM" action="CREATE">
<cfobject type="COM" name="xmlHttp" class="Microsoft.XMLHTTP"
action="CREATE">
<!--- Load XML, Open HTTP, & Send XML --->
<cfscript>
xmlDoc.loadXML(xml_str);
xmlHttp.open("POST", "http://dave/phase2receive.cfm", false); Note: Dave
is registered in our Intranet WINS DB
xmlHttp.send("D:\DOMAINS\JUPITER\sendxml.xml");
res = xmlHttp.responseText;
</cfscript>
I'm pretty sure it centers around the post command. If I comment it out with
the xmlhttp.send everything flows with no errors, and no results of course.
If anyone has a proven technique I would love to hear about it. Or a better
way... Thanks in advance for your assistance.
Regards,
Dave Mattingly
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com