On Friday 23 Mar 2007, Jeff Small wrote:
> Man, I've re-read that three times now, and I'm just NOT following it. I'm
> so sorry Dave, but isn't the CFC the webservice? So you'd call for
> instance, "getPerson()" but that's not a method?

Yes, the CFC is the webservice, yes it has a method getPerson() you can call 
from .Net or whatever.
Inside the CFC, you do:

<cfquery name="q" ....
select first,last
from people
...
</cf....
<cfset ret= ArrayNew()>
<cfloop query="q"....
        <cfset ret[q.currentRow]=createObject('component','com.valueObject')>
        <cfset ret[q.currentRow].firstname=q.first>
        <cfset ret[q.currentRow].lastname=q.last>
</cf...
<cfreturn ret />

> But would an "object" be a cross platform "object" simply because I said it
> was? 

Because you said so :-)
The cfproperty's get built into the WSDL that other people use to connect to 
the webservice, so they know what you mean by 'person'.
Open the WSDL in your favourite plain text editor and you should recognise 
(some) bits of it straight off.

-- 
Tom Chiverton
Helping to seamlessly develop plug-and-play content
On: http://thefalken.livejournal.com

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273558
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to