> -----Original Message----- > From: Bryan Stevenson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 12, 2005 6:20 PM > To: CF-Talk > Subject: websevices oddities (compared to local components) > > Hey All, > > OK...so there seems to be some oddities (perhaps because I don't > understand why they react the way they do) in webservices. > > 1) file named MyWS.cfc..add a method and call it..all is well...add a new > method...call it...error (no such method) > If I rename the file to MyWS2.cfc and call the new method in it...all is > now fine!!! > > So it looks like CF is caching something?? any ideas? can this behavior be > stopped?
Yup. Murphy says "Caching will always happen until you want it to happen." > 2) Calling a webservice without passing ALL arguments (regardless of if > they are required). It seems that a webservice MUST be passed all > arguments whether they are requird or not. Is this right? if so why (I > have some thoughts on this...but lets see what the pack has to say)? This documented here: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=ColdFusion_Documentation&file=part_dev.htm Here's the relevant bit (note number four): + + + + + + + + + + + + + + + + + + + + + + + + + + + + By defining the function as remote, ColdFusion includes the function in the WSDL file. Only those functions marked as remote are accessible as a web service. The following list defines the requirements for how to create web services for publication: 1) The value of the access attribute of the cffunction tag must be remote. 2) The cffunction tag must include the returnType attribute to specify a return type. 3) The output attribute of the cffunction tag must be set to No because ColdFusion converts all output to XML to return it to the consumer. 4) The attribute setting required="false" for the cfargument tag is ignored. ColdFusion considers all parameters as required. + + + + + + + + + + + + + + + + + + + + + + + + + + + + No explanation as to exactly why - I assume it's some weird SOAP thang. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214841 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

