I've been asked to use XML to send a request to a server to gather uncharged orders. Once the orders are collected, I process the cards and then send back a response to the server telling it which ones passed and which ones failed. I'm using 5.0
The code I've got so far is just trying to get the response (should be in XML format?) <cfset xml_request_text = "<request><resellerid>IDNUM</resellerid><password>IDNUM</password><requestid >ER#RandRange(10000,999999)</requestid><requestcode>1</requestcode></request >"> <cfwddx action="CFML2WDDX" input="#xml_request_text#" output="xml_output"> <cfoutput>#xml_output#<br></cfoutput> <cfhttp url="SOMEIP" method="post" file="xml_response.xml" path="c:\XML_feed\" port="9909" name="XML_name" resolveurl="false"> <cfhttpparam type="FORMFIELD" name="xml_form_request" value="#xml_output#"> </cfhttp> <cffile action="READ" file="c:\XML_feed\xml_response.xml" variable="xml_response_file"> <cfoutput>#xml_response_file#</cfoutput> <cfwddx action="WDDX2CFML" input="#XMLFormat(xml_response_file)#" output="xml_response"> <cfoutput>#xml_response#</cfoutput> I keep getting this error... XML parsing error: no element found (error code 3, line 1, column 0, buffer offset -1) Any idea what I'm not doing correctly? They say the box is there and the port is open, but I'm not familiar with XML enough to know what I'm leaving out or if there is a better way. Any direction would be greatly appreciated. Thanks, Matt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:5 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Get the mailserver that powers this list at http://www.coolfusion.com
