I would agree with you for a regular cfc, but here we are referring to a webservice and the docs expicitly say
Note: All arguments are required when invoked as a web service, irrespective of how they are defined. So I dont quite know why this would be the case. Clearly you need to define vars and defaults and check for existance thats standard, but why does a webservice behave differently. Duncan On 5/23/06, Mark Ireland <[EMAIL PROTECTED]> wrote: > > > I think required="yes" just means that there is some code (usually SQL) in > the component that will not work without the argument. > > Usually cfif isDefined("arguments.myArgument")> > > > >From: [EMAIL PROTECTED] > >Reply-To: cfaussie@googlegroups.com > >To: "cfaussie" <cfaussie@googlegroups.com> > >Subject: [cfaussie] webservice confusion > >Date: Mon, 22 May 2006 22:19:29 -0000 > > > > > >So I am looking at a webservice from a developer and then compared it > >to the webservice on goog. > > > > >From the docs for cfargument: > > > >Note: All arguments are required when invoked as a web service, > >irrespective of how they are defined. > > > >So this is saying that you must always use required="yes" meaning that > >anyone that consumes the service must pass in a blank parameter value. > > > >On fullasagoog the params arent all required: > >http://www.fullasagoog.com/webservice.cfm > > > >so for example they would be doing this: > ><cfargument name="source" type="string" required="no" /> > > > >Whats up with that? I dont understand why the docs say required, but > >goog has not required. > > > >Do I really have to have required=yes for every param? What happens if > >its no and the consumer doesnt pass in a blankvalue/key pair? > > > >Thanks > > > > > >> > > _________________________________________________________________ > Read, write and reply to Hotmail on your mobile. Find out more. > http://mobilecentral.ninemsn.com.au/mcmobileHotmail/home.aspx > > > > > -- Duncan I Loxton [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---