Is there a better way of posting XML over HTTPS and setting header info
than the one below?
<cfscript>
// create the object used to send XML to eBay API
xmlObjServer = CreateObject("COM",
"msxml2.serverxmlhttp");
// set the request headers for the HTTP request
// set SANDBOX variables in request headers
variables.Urlxml="https://test.com/api.dll";
xmlObjServer.open( "post",
variables.Urlxml,"false");
xmlObjServer.setRequestHeader("Header1",
"test1");
xmlObjServer.setRequestHeader("Header2",
"test2");
</cfscript>
<!--- send the XML call itself via the COM Obj. variables.xml
contains the XML for the API call itself. --->
<cfset x = xmlObjServer.send( variables.xml )>
<!--- retrieve the returned XML from the Obj --->
<cfset variables.respXml = xmlObjServer.responseXML>
<cfset variables.respXml = variables.respXml.xml>
<cfset xmlObjServer = "">
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186417
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54