Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
CFFan #1
Web Service Stub Errors 6.1 Updater 1
I am starting to dabble in Web Services and having problems creating a very
simple web service from a CFC. I am running MX 6.1 Updater 1 on Dell W2K.
Getting Could not generate stub objects for web service invocation error.
Looking at ?wsdl shows:
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - [coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedC FCDataTypeException
: Could not resolve CFC datatype: /mtr/contract.cfc][; nested exception is:
coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedC FCDataTypeException : Could
not resolve CFC datatype: /mtr/contract.cfc][
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
[coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedC FCDataTypeException : Could
not resolve CFC datatype: /mtr/contract.cfc][; nested exception is:
coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedC FCDataTypeException : Could
not resolve CFC datatype: /mtr/contract.cfc][
faultActor:
faultNode:
faultDetail:
No mappings have been created in CF Administrator for components. I have
tried moving the component to the root of my site and also to a directory where
application.cfm is not doing any logon verification. CFC works as expected
stand-alone.
Here is my code:
CFC:
<cfcomponent displayname="Contract" Hint="Contract Information Component">
<cfset this.contractid = 0>
<cfset this.contractname = "">
<cfset this.contractacronym = "">
<cffunction name="getContractName" returntype="string" Output="no"
access="remote">
<cfargument name="contractid" type="numeric" required="true">
<cfif arguments.contractid NEQ this.contractid>
<cfset this.contractid = arguments.contractid>
<cfquery name="getname" datasource="mtr_dev1">
select contractname, acronym
from contract
where contractid = #arguments.contractid#
</cfquery>
<cfif getname.recordcount EQ 1>
<cfset this.contractname = getname.contractname>
<cfset this.contractacronym = getname.acronym>
<cfelse>
<cfset this.contractname = "Contract Not Found">
<cfset this.contractacronym = "Contract Not Found">
</cfif>
</cfif>
<cfreturn this.contractname>
</cffunction>
<cffunction name="getContractAcronym" returntype="string" Output="no"
access="remote">
<cfargument name="contractid" type="numeric" required="true">
<cfif Len(Trim(this.contractacronym)) EQ 0
OR this.contractid NEQ arguments.contractid>
<cfset returnname = this.getContractName(arguments.contractid)>
</cfif>
<cfreturn this.contractacronym>
</cffunction>
</cfcomponent>
Test template to invoke as Web Service (where error occurs on invoke):
<cfscript>
con = createobject("webservice",
"http://ecommercedev1.ecom.dom/mtr/contract.cfc?wsdl");
ContractName = con.getContractName(37);
ContractAcro = con.getContractAcronym(37);
</cfscript>
I am seeing alot of posts on this but no resolutions. HELLO - Macromedia!
Lots of folks needing help on this one!!!
thanks!
CFFan Guest
-
CFMX 6.1 Updater Errors?
I know I'm behind the curve, but I'm trying to install the latest CFMX 6.1 Updater (the cumulative one) on my test server which is running 6.1... -
Event Service errors
My server log and exception log both contain this error string when I restart the service. Unable to initialize Event service:... -
AxisFault errors in Web Service Invocation
I've got a web service set up for consumption but the only returnType that I can get to work is numeric. All other returnTypes in the cffunction tag... -
ODBC Service Errors
Windows 2003 Server running ColdFusion MX 6.1 with Updater Installed. Every two to three minutes there is a new error in the Event... -
Time Service errors
Hello: We have only 1 NT domain and put the first Windows Server 2003 AD DC in this past weekend. Everything seems to be working fine except the...



Reply With Quote

