I actually ended up doing it this way and it worked.
<cfcomponent>
<cffunction name = "getAcctInformation" access="remote" returntype="struct">
<cfargument name= "acct_id" required = "true" displayname="acct_id" >
<cfargument name = "premID" required = "true" displayname="premID">
<cfset var myStruct = structNew()>
<cfstoredproc procedure= "acctLookup2" datasource= "CFDM" debug="yes">
<cfprocparam type= "In" cfsqltype= "CF_SQL_CHAR" value= "#acct_id#" null="no">
<cfprocparam type= "In" cfsqltype= "CF_SQL_CHAR" value= "#premID#" null="no">
<cfprocparam type= "OUT" cfsqltype= "CF_SQL_CHAR" null="no" variable = "p_acct_id">
<cfprocparam type= "OUT" cfsqltype= "CF_SQL_CHAR" null="no" variable = "p_address">
<cfprocparam type= "OUT" cfsqltype= "CF_SQL_CHAR" null="no" variable = "p_city">
<cfprocparam type= "OUT" cfsqltype= "CF_SQL_CHAR" null="no" variable = "p_postal">
<cfprocresult name= "acctLookup" >
</cfstoredproc>
<cfset myStruct.AcctID="#p_acct_i
<cfset myStruct.street="#p_addres
<cfset myStruct.city="#p_city#">
<cfset myStruct.postal="#p_postal
<cfreturn myStruct>
</cffunction>
</cfcomponent>
Main Topics
Browse All Topics





by: adonis1976Posted on 2006-02-06 at 12:28:42ID: 15886484
You should invoke the component instead of webservice. Try this:
e_of_your_ cfc" method="getAcctInfo" returnvariable="rst1">
<cfinvoke component="path_to_cfc.nam
<cfinvokeargument name="acct_id" value="#v_acct_ID#">
<cfinvokeargument name="premID" value="#v_prem_id#">
</cfinvoke>