<!--- Build our WSDL Url. ---> <cfset strURL = ( "http://localhost" & GetDirectoryFromPath( CGI.script_name ) & "WS.cfc?wsdl" ) /> <!--- Build our XML data. ---> <cfsavecontent variable="strData"> <data> <value>Test</value> </data> </cfsavecontent> <!--- Invoke the web service. ---> <cfinvoke returnvariable="strResponse" webservice="#strURL#" method="Test" refreshwsdl="true"> <cfinvokeargument name="Data" value="#Trim( strData )#" /> </cfinvoke> <!--- Output the response. ---> <cfoutput> #strResponse# </cfoutput>