Sean A Corfield wrote:
No you can't - every number is a valid return. There is no way to return a distinct number that can be identified as an error code!
Ok, I was wrong on this one. I was going to say that 11111190000 could be returned, but multiplication can return this number.
I'm pointing out that this is a *GENERAL* problem with publishing web services and not CF-specific. In order to do what you want IN ANY LANGUAGE you need the WSDL to say one thing but the actual code to do something different, i.e., the actual code must accept *any* arguments and do all of the validation itself despite what the WSDL claims.
I agree on that. I thought by leaving the type checking up to CF that the WSDL would reflect that a certain type is of numeric, struct, etc. And the only way for me to get both CF to do that and the WSDL to reflect the code I would need to catch the type errors.
That can't be done, and I think that sucks. I can't do anything about it so I'm just going to generate my own WSDL from a function. What I don't understand is if I can write CF to generate a correct WSDL for a function fairly easy. Why couldn't CF do it automatically?
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
