OK, I finally have my init() method working, as well as learning some of the bugs (like the cfargument required=...now that's annoying). Here's a new one. I have a create method to write to the db. In the DWMX WebServices panel I can see the method (this applies to my update method as well). But when I call the method [aCat.create()] I get the following error on the page:

Error Occurred While Processing Request
The selected method update was not found.
Either there are no methods with the specified method name and argument types, or the method update is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.


Here is the code of the method:

<cffunction name="create" access="remote" returntype="void" hint="Requires that you have already called the setCategoryName() and setStatus() methods of this object">

<cftransaction>
<cfquery name="qCat" datasource="#application.config.DSN#">
insert into tblboutcat2 (
txtBoutCat,
blActive )
values (
<cfqueryparam cfsqltype="cf_sql_varchar" value="#this.categoryName#" null="#YesNoFormat(NOT Len(Trim(this.categoryName)))#">,
<cfqueryparam cfsqltype="cf_sql_tinyint" value="#this.status#" null="#YesNoFormat(NOT Len(Trim(this.status)))#"> )
</cfquery>

<cfquery name="qID" datasource="#application.config.DSN#">
select max(intBoutCatID) as ID
from tblboutcat2
</cfquery>

<cfset this.ID = qID.ID>
</cftransaction>
</cffunction>


And here's the lines of the wsdl document that make me wonder:

- <wsdl:operation name="create">
<wsdl:input name="createRequest" message="impl:createRequest" />
<wsdl:output name="createResponse" message="impl:createResponse" />
<wsdl:fault name="CFCInvocationException" message="impl:CFCInvocationException" />
</wsdl:operation>


Once again, any suggestions are appreciated.

Cutter

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to