just bringing the thread back to life hoping someone can shed some light....see below ;-)
----- Original Message ----- From: "Bryan Stevenson" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Tuesday, August 16, 2005 12:57 PM Subject: Re: REPOST: webservices and optional numeric arguments > From: "Deanna Schneider" > > >>I think that you have to allow the cfargument to be of type string or >> type any, and then do additional checks to determine if it is numeric >> or blank (ie null) within your code. > > Which is what I'm trying to find a way around as that approach sucks IMHO > ;-) > > The problem is the consumer of the web service may pass in a string > instead > of a proper numeric value....the method returns an empty recordset because > the query fails to find any records with a numeric ID of "foo" and the > consumer has no idea why. To make it even worse the consumer may be > reading > the auto-generated documentation for that web service and see that a > "string" is the datatype when it's really supposed to be numeric. > > That's just bad ;-) > > Can anybody tell me why this is how web services behave? or have a > solution > to the issue above? > > TIA > > Cheers > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > phone: 250.480.0642 > fax: 250.480.1264 > cell: 250.920.8830 > e-mail: [EMAIL PROTECTED] > web: www.electricedgesystems.com > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:215436 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

