/ Published in: ColdFusion
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!--- -------------- Send arguments to ClaytonHomes remote service ---------------- ---> <cfhttp url="http://pubwebteam.pubdev.com/M3cf/cfc/getdata.cfc" method="post" > <cfhttpparam type="formfield" name="method" value="getImages"> <cfhttpparam type="formfield" name="plant" value="921"> </cfhttp> <cfwddx action="wddx2cfml" input='#cfhttp.FileContent#' output="callReturn"> <Cfdump var="#callReturn#" top="20"> <!--- ------------------ on the CFC side ------------------ ----> <cffunction name="getImages" access="remote" returntype="any" output="no"> <cfargument name="type" type="string" required="no" default=""> <cfargument name="plant" type="string" required="no" default=""> <cfargument name="seriesId" type="string" required="no" default=""> <cfargument name="modelNumber" type="string" required="no" default=""> <cfstoredproc datasource="#this.dsn#" procedure="M3.PrcImagesBySearch"> <cfprocresult name="rs" /> <cfprocparam dbvarname="type" type="in" cfsqltype="cf_sql_varchar" value="#arguments.type#"/> <cfprocparam dbvarname="plant" type="in" cfsqltype="cf_sql_varchar" value="#arguments.plant#"/> <cfprocparam dbvarname="seriesId" type="in" cfsqltype="cf_sql_varchar" value="#arguments.seriesId#"/> <cfprocparam dbvarname="modelNumber" type="in" cfsqltype="cf_sql_varchar" value="#arguments.modelNumber#"/> </cfstoredproc> <cfset myResult = rs> <cfreturn myResult> </cffunction>