A ColdFusion array is not very compatible.  The problem is CF provides no
mechanism to type arrays so it will always be an array of anything.  To
interoperate with other languages you usually need to specify what it's an
array of.  I've had no problems with arrays of scalars but never with array
of struct or array of components.

We need typed arrays as web service returnTypes:
http://www.macromedia.com/go/wish 

As far as complex type, Matt is completely correct about using CFC value
objects instead of structs.  They provide for real typed WSDLs instead of
just key/value pairs where the values are anything.

HTH,

Sam


-----------------------------------------------
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
-----------------------------------------------



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young
> Sent: Thursday, February 05, 2004 8:01 PM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] Achieving max compatibility for Web Service
> 
> 
> Hi folks,
> 
> I'm putting together a web service that will pipe out reporting data.
> For compatibility reasons I'm converting the query to an 
> Array of structs...but I've been wondering if it'd be worth 
> it to convert the data to an Array of objects. (so I can use 
> cfproperty to enhance the descriptiveness of the WSDL)
> 
> Some of these recordsets may be large. Upwards of 5,000 - 
> 10,000 records. Curious to hear what folks think...would it 
> make more sense to just hack the WSDL itself?...and can that 
> be done reliably without busting the service?
> 
> -Stace


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