Interesting suggestions.  I think I'd rather keep the return data as
an array of structs because that's what the Mach-II client is
expecting (and I don't want to change it if I don't have to).

Let me pose it another way.  Is there any reason why I can't just
manually create the wsdl to keep the return data as is but make Lazlo
happy?

-Phil

On Thu, 7 Oct 2004 15:50:29 -0400, Roland Collins <[EMAIL PROTECTED]> wrote:
> It's the structs that are probably causing you the issue - they're
> completely non-interoperable.  If you instead returned an array of some
> well-defined type (that is, a CFC you create), it should work fine.  You can
> even just create a CFC that wraps a struct and store that in the array
> instead of the struct and it should work just fine.
> 
> Roland
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Phil Cruz
> Sent: Thursday, October 07, 2004 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] return types and web services and manually creating wsdl
> 
> I have an app that exposes some web services.  The services query the
> database and return the data as an array of structs.  I have a Flash
> client that is able to consume the service and display the data.
> 
> I'm trying out Lazlo and finding that it can consume the service but
> it doesn't understand/support  the return type.
> 
> The wsdl (generated by CFMX ) for the getUsers() method looks like
> 
> <wsdl:message name="getUsersResponse">
> <wsdl:part name="getUsersReturn" type="impl:ArrayOf_xsd_anyType"/>
> </wsdl:message>
> 
> <complexType name="ArrayOf_xsd_anyType">
> <complexContent>
> <restriction base="soapenc:Array">
> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/>
> </restriction>
> </complexContent>
> </complexType>
> 
> >From looking at the docs
> (http://www.laszlosystems.com/lps-2.2/docs/guide/rpc-soap.html#d0e23561)
> it seems these data types are not supported.
> 
> The Lazlo example apps demonstrate working with the google web service
> http://api.google.com/GoogleSearch.wsdl
> 
> I think I need to manually generate the wsdl to be compatible with
> Lazlo.  Any pointers on how to do that?
> 
> Thanks,
> Phil
----------------------------------------------------------
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