I have created a web service (or attempted to) which is giving me an
error.  Can anyone give me insight into this issue?  The final service
will be more complicated, but I can't even get it to recognize my
parameters.  Any help would be great!

--Jeff

Here is the error:

Web service operation "availability" with parameters
{{FACILITY={rcl},DAY={30},YEAR={2004},MONTH={05},}} could not be found.

For now I have hardcoded values which will eventually be passed via a
form.  I've tried using cfinvoke with cfinvokeargument as well and got
the same error.

<cfscript>
myData = structNew();
myData.facility = "rcl";
myData.month = "05";
myData.day = "30";
myData.year = "2004";

ws = createObject("webservice","hut");
ws.availability(myData);
</cfscript>

I've simplified the CFC below in an attempt to figure out what the
problem is to no avail.  This will eventually query a datasource with
the passed values.  Have I coded my cfarguments incorrectly?

<cfcomponent>

<cfproperty name="name" type="string">
<cfset this.name = "Facility Availability">

<cffunction name="availability" output="No" returntype="string"
access="remote">

<cfargument name="facility" required="Yes" type="string">
<cfargument name="month" required="Yes" type="numeric">
<cfargument name="day" required="Yes" type="numeric">
<cfargument name="year" required="Yes" type="numeric">

<cfset foo = #arguments.facility# & #arguments.month# & #arguments.day#
& #arguments.year#>
     
<cfreturn foo>
</cffunction>

</cfcomponent>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to