[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

calling a strored procedure from a cfcomponent

Asked by moshawn in ColdFusion Application Server

Tags: cfcomponent

I get the following error when I invoke a cfcomponent which has a cffunction that calls a stored procedure:

Here is the fault returned when invoking the web service operation:

AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (500)Internal Server Error
 faultActor:
 faultNode:
 faultDetail:
      {}:return code:  500

      {http://xml.apache.org/axis/}HttpErrorCode:500
 
 
The error occurred in C:\CFusionMX7\wwwroot\accountInformation.cfm: line 54
 
52 :        <cfinvoke  webservice="http://LOCALHOST/component_lookup1a.cfc?wsdl" method="getAcctInfo"   returnvariable="rst1">  
53 :              <cfinvokeargument name="acct_id" value="#v_acct_ID#">
54 :              <cfinvokeargument name="premID"   value="#v_prem_id#">  
55 :       </cfinvoke>
 

Here is the component

<cfcomponent>
<cffunction name = "getAcctInfo"  access="remote"    returntype="query">
<cfargument name= "acct_id" required = "true" displayname="acct_id" >
<cfargument name = "premID" required = "true"  displayname="premID">

<cfstoredproc procedure= "acctLookup2" datasource= "CFDM">

<cfprocparam type= "In" cfsqltype=   "CF_SQL_CHAR"    value= "#arguments.acct_id#" null="no">
<cfprocparam type= "In" cfsqltype=   "CF_SQL_CHAR"    value= "#arguments.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" resultset="rst1">
</cfstoredproc>
<cfreturn  rst1>
</cffunction>
</cfcomponent>

Here is the stored procedure:

CREATE OR REPLACE procedure acctLookup2(

p_acct_num in  varchar2,
p_premID in varchar2,
p_acct_id out varchar2,
p_address out varchar2,
p_city out varchar2,
p_postal out varchar2)
as
Begin
      SELECT ACCT_ID, ADDRESS1, CITY,  POSTAL
      into  p_acct_id, p_address, p_city, p_postal
      FROM V_ACCOUNT_INFO_FAST
      WHERE acct_id = p_acct_num
      AND PREM_ID = p_premID;
End ;

Please help
[+][-]02/06/06 12:28 PM, ID: 15886484Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/06 01:26 PM, ID: 15887120Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 10:57 AM, ID: 16272798Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]03/27/06 01:22 PM, ID: 16304942Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: ColdFusion Application Server
Tags: cfcomponent
Sign Up Now!
Solution Provided By: CetusMOD
Participating Experts: 2
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-89