Thanks Andr�, all working now, I knew it must have been something simple - but not quite _that_ simple ;-)
Alex > -----Original Message----- > From: Andre Mohamed [mailto:[EMAIL PROTECTED] > Sent: 08 August 2003 10:13 > To: CF-Talk > Subject: RE: Webservices, Components & passing parameters > > > Try this: > > Go to your ColdFusion Administrator. Locate the web service > in question > via Data & Services -> Web Services. Click on the refresh icon. > > Try running your code again. > > Andr� > > -----Original Message----- > From: A.Little [mailto:[EMAIL PROTECTED] > Sent: 08 August 2003 10:00 > To: CF-Talk > Subject: Webservices, Components & passing parameters > > Hi all, > > OK, can anyone tell me what I;m doing wrong here... I have created a > very > simple webservice (see code below), which works fine if I try > to call it > as > a cfc, but as soon as I try to call the method as a webservice, I get > the > error 'Web service operation "getDocTitle" with parameters > {5459} could > not > be found.' > > If I comment out the parameter/argument bits - so nothing is > passed and > nothing is expected by the cfc - it all works fine. I'm sure > there must > be > something simple I've missed.... > > TIA > Alex > > Code samples: > cfc page: > <cfcomponent> > <cffunction name="getDocTitle" access="remote" returntype="string"> > <cfargument name="DocumentID" type="numeric" > required="yes"> > > <cfquery name="qry_getDoc" datasource="#request.dsn#"> > SELECT DocumentTitle FROM tblDocument > WHERE DocumentID = <cfqueryparam > cfsqltype="cf_sql_integer" value="#arguments.documentid#"> > </cfquery> > <cfreturn qry_getDoc.DocumentTitle> > </cffunction> > </cfcomponent> > > Calling page: > > <cfscript> > DocumentID = 5459; > ws = > createobject("webservice","http://kn-dev.open.ac.uk/testarea/w > ebservice/ > docu > ment.cfc?wsdl"); > testvar = ws.getDocTitle(#DocumentID#); > </cfscript> > > <cfdump var="#testvar#"> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

