Return to Snippet

Revision: 27983
at June 29, 2010 00:35 by ChrisCantley


Initial Code
<!--- -------------- 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>

Initial URL

                                

Initial Description

                                

Initial Title
Send form values to Remote CFC

Initial Tags

                                

Initial Language
ColdFusion