<cfset strURL = (
"http://" &
CGI.server_name &
REReplace( CGI.script_name, "[^\\/]+[\\/][^\\/]+$", "", "one" ) &
"Test.cfc"
) />
<cfsavecontent variable="xmlRequest">
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<Test />
</soap:Body>
</soap:Envelope>
</cfsavecontent>
<cfhttp
result="objSOAPResponse"
method="post"
url="#strURL#"
username="#username#"
password="#password#">
<cfhttpparam
type="header"
name="soapaction"
value=""
/>
<cfhttpparam
type="xml"
value="#Trim( xmlRequest )#"
/>
</cfhttp>
<cfdump
var="#objSOAPResponse#"
label="CFHTTP Response"
/>
<cfdump
var="#XmlParse( objSOAPResponse.FileContent )#"
label="SOAP Response"
/>