Sean A Corfield wrote:

Well, you can auto-generate the WSDL from a CFC - you just need a different CFC interface to the actual code you need to implement behind the scenes. I think that will be less work for you that trying to create the WSDL by hand...

Wasn't planning on doing it by hand. That's crazy. I don't know if you remember or not, but I'm building a service interface to expose existing functions within my factory as webservices based upon configuration.


I don't understand you - CF does generate a correct WSDL for the CFC code. It does exactly the right thing. Any system that auto-generates WSDL from code will behave the same way. What you really want is code that is generic and accepts any arguments and does its own validation but WSDL that reflects some arbitrarily stricter code interface.

We are talking about the same thing. I'm just not good at expressing my mind in words or in speech.


I want the WSDL to say that this is numeric or that is a struct. I can write a CFC that will do this. What I don't understand is why I can write it and CF doesn't seem to be able to. I really don't need an answer to that. It is a discussion I don't have the energy for at the moment.

In some ways, what you really need is an enhancement to CFCs that would allow this:

<cffunction name="sendFax" returntype="numeric" access="remote" output="false">
<cfargument name="userID" type="any" required="false"
wsdltype="numeric" wsdlrequired="true" />
<cfargument name="faxNumber" type="any" required="false"
wsdltype="numeric" wsdlrequired="true" />
<cfset var status = 0 />
...
<cfreturn status />
</cffunction>


Here the WSDL is generated based on the wsdltype= and wsdlrequired= attributes which override the standard attributes. That would allow you to perform all the validation inside the function.

If y'all think that's a nice enhancement and is worth adding, submit it to:

Sounds good to me, that would get me what I'm looking for. I've never minded creating a type of any, I just didn't want to have the WSDL say unknown or any or whatever it would say if the type value was any.
----------------------------------------------------------
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]

Reply via email to