It worked once I changed:
<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">
To:
<cfargument name="facility" type="string">
<cfargument name="month" type="numeric">
<cfargument name="day" type="numeric">
<cfargument name="year" type="numeric">
Huh? I *want* all of those paramteres to be required. Is there another
way to force parameters in a cfc to be required?
--Jeff
Jeff Langevin wrote:
> Hmmm... that makes sense, but now I get:
>
> Web service operation "availability" with parameters {rcl,05,30,2004}
> could not be found.
>
> When I used cfinvoke, I got something similar.
>
> --Jeff
>
> Rick Root wrote:
>
> > Jeff Langevin wrote:
> >
> > > 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!
> >
> > It looks like you are passing a struct as a single parameter. But your
> > web service isn't configured to accept a struct as an input parameter..
> > it's expecting four separate input parameters.
> >
> > so instead of this:
> >
> > ws.availability(myData);
> >
> > try this:
> >
> > ws.availability(myData.facility, myData.month, myData.day, myData.year);
> >
> > - Rick
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

