Web Services do not create custom VO's in Flex 2 or in Flex 3 prior to Beta
2.  The RemoteClass tag that Jim Hayes mentioned is only for remoting.

In Flex 3 beta 2 there are two new options for working with compile-time
objects and web services:

1.  WSDL Importer.  You can use the WSDL importer under Data to create a web
service proxy class which creates AS3 objects matching those that will be
returned by the web service.

2.  SchemaTypeRegistry.  You can use the new mx.rpc.xml.SchemaTypeRegistry
class to associate an AS3 class with a QName so the Web Service runtime code
will use your native objects.  Not much info or discussion on this yet, but
it's there and looks very promising.
http://livedocs.adobe.com/labs/flex/3/langref/mx/rpc/xml/SchemaTypeRegistry.
html

HTH,

Sam



-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mrand02
Sent: Friday, October 05, 2007 9:49 AM
To: [email protected]
Subject: [flexcoders] VO from WebService not being translated?

I have a .NET web service that sends a VO back as a result for one of
its methods.  The VO has 5 properties (4 strings, 1 uint), and one
property that is another VO that contains 2 strings.  Looks like this:

ClientInfo
  uint
  string1
  string2
  string3
  string4
  ErrorObject
    string1
    string2

This information gets returned to my Flex app no problem, but when I
try to cast it to my client side ClientInfo object, it comes back as
null or errors out.  I'm trying like this inside my event handler:

var clientInfo:ClientInfo = evt.result as ClientInfo;

after this line, clientInfo is set to null.  The object has the exact
properties that it should, so what gives?  I'm new to Flex, so I'm not
sure if I'm expecting too much, I just kinda figured this would work...


Reply via email to