> 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?

You'd have a CFC that contains the web service method(s), and that CFC would
use another CFC to define the return value datatype. The CFC example that I
included would be the latter one, which just contains CFPROPERTY tags. Your
getPerson method would return one of these CFC instances instead of
returning a structure.

> But would an "object" be a cross platform "object" simply 
> because I said it was? Who defines what a "person object" is? 
> Is a "person object" the same in PHP as it is in CF as it is 
> in .Net?

The point of SOAP is to take care of these things for you. (If only it did a
better job at this!) So, yes, your person object would have the same
attributes regardless of the language.

> This all stems from a web service that I'm trying to access 
> that's just not returning ANYTHING that resembles the results 
> I'm expecting. So I decided to just try and write my own "web 
> service" that could be invoked remotely and return live data. 
> I got that working really easily, but then realized that I 
> was just returning CF "objects" (structs, arrays, query 
> objects) that were fine in CF, but would be worthless to 
> anyone else. That's when I started to realize that maybe 
> there's a problem with the form of the data that this web 
> service was returning, and I started down this road... I just 
> haven't had an opportunity to work with WSDL and web services 
> or XML very much, so I'm just in WAY unfamiliar territory...

Queries and structures aren't defined in SOAP, but arrays are. If you define
custom objects as described previously, and use those in place of
structures, those will be properly represented in SOAP.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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

Reply via email to