Hey Kirk,

I can't speak for everyone, but typically the result from a service call is cast to Value Objects that reside in the model (ModelLocator, if you're using Cairngorm).  Yes, the VO's would be hand-coded and would be populated in the onResult handler function.  Unless you're useng FDS or WebOrb, I don't think that there is an automatic way to generate the VO's.  However, others know more about this, Perhaps someone else can ellaborate further.

-TH
__________________________________

Tim Hoff

Cynergy Systems, Inc.

http://www.cynergysystems.com

Office: 866-CYNERGY 

--- In [email protected], "Kirk Marple" <[EMAIL PROTECTED]> wrote:
>
> don't mean to push this discussion off-track, but for the simplest case
> where i have a .NET-based REST web service returning XML results, what is
> the easiest way to implement this mapping on the Flex side?
>
> i've been reviewing the YouTube and Flickr classes that use URLLoader to
> pull from their REST web services, and i see how those examples have AS3
> value object classes that are populated when the web service result is
> received.
>
> is this a common approach that others are following, or are there other
> common options i'm not seeing?
>
> given that the XML returned from the REST web service is actually serialized
> classes from my .NET back-end, do people typically just regenerate the AS3
> classes by hand, or are there common tools to generate them? say, if i had
> an XSD from my .NET class, are there tools to generate the AS3 classes from
> the XSD?
>
> i wouldn't want to have to re-create everything by hand on the Flex side,
> because i already have that class layout in C#, so it would be nice to
> re-use some of that information.
>
> thanks,
> Kirk
>
> _____
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Hoff
> Sent: Saturday, October 14, 2006 3:02 PM
> To: [email protected]
> Subject: [flexcoders] Re: Flex 2.0 And .net webservices Dataset retrieving
> problem
>
>
>
>
> Here's the links to WebOrb and Fluorine:
>
> WebOrb <http://www.themidnightcoders.com/weborb/dotnetweborb.htm>
> Fluorine <http://fluorine.thesilentgroup.com/fluorine/index.html>
>
> -TH
> __________________________________
>
> Tim Hoff
>
> Cynergy Systems, Inc.
>
> http://www.cynergys <http://www.cynergysystems.com/> ystems.com
>
> Office: 866-CYNERGY
>
> --- In [email protected], Sajid Hussain enchanter_saj@ wrote:
> >
> > Hi Tim,
> > Thanks for ur informative words, I have been working with Flash Remoting
> with .net but adobe still amaze me why not Remote objcts for .net....could u
> tell me some links about working with Flourine and Flex 2.....
> >
> >
> > Tim Hoff TimHoff@ wrote:
> > Hi Sajid,
> > If you have a choice, I would definitely recommend that you use
> remoteObjects with Adobe products. Flex was built with tight integration to
> Cold Fusion and Flex Data Services. Understandably, working with these
> products will create fewer headaches. Some companies and developers,
> although, don't have a choice of the backend and/or middle tier; because of
> the investment in IT infrastructure. Fortunately, Flex accommodates other
> frameworks through webservices and HTTPService. If you are having trouble
> figuring out how to use webservices yourself, you can always look into using
> WebOrb or Flourine. These integrated products offer the use of remoteObjects
> with .Net. They also offer examples how to get you connected. Either way,
> you do have options that work. The help docs can help you considerably in
> this area.
> > -TH
> > __________________________________
> > Tim Hoff
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com
> > Office: 866-CYNERGY
> >
> > --- In [email protected], Sajid Hussain enchanter_saj@ wrote:
> > >
> > > Hi !!!!!!!!! as few days experince with flex and .net ..I am thinking to
> start flex with php or with JavaRemote Objects ,and infact as i think .net
> will be more strong with its new verssion of Interface XAML ...but i still
> misss Macromediaa word from my Start Menu :D
> > >
> > >
> > > Matias Nicolas Sommi nicosommi@ wrote:
> > > He!, the first problem was "metabase permission" on the iis, and I
> download a microsoft tool to fix it (aspnet_iisreg or something like that).
> I run the command for give to the iis to read acces to the metabase. After
> this, I've got an extrange error, it's like the iis was reading an extrange
> symbol in the asmx file. But after reinit, the problem was fixed :S...
> > >
> > > The only thing that I don't know is: when i pass more than one parameter
> from flex to a webservice, the Array class in flex separate the arguments
> with comma, and NET receive it in only one string comma separated... this is
> the normal way or something was wrong?
> > >
> > > Thanks. If someone has problems with asp webservice/IIS please ask me,
> if I can, I help.
> > > Bye.
> > >
> > > 2006/10/12, Sajid Hussain enchanter_saj@ >: Could u telll ...what was
> the problem ....??
> > >
> > >
> > > Matias Nicolas Sommi nicosommi@ wrote:
> > > Hello, I fix the IIS configuration problem. Now I can consume NET
> webservice without problem.
> > > Thanks to all for the help.
> > > PD: for the IIS, isn't related to flex, and for that reason I marked
> with "off topic".
> > >
> > >
> > > 2006/10/11, Tim Hoff < TimHoff@: Hmmm, something about glass houses
> comes to mind. Matias, it's far
> > > more useful to make constructive comments. Concerning IIS
> > > configuration, there are plenty of resources online that can help
> > > you with this. I suggest Google. However, it sounds like your
> > > local path to the .Net framwork might be different than the
> > > framework path on the server. That's all I can offer since this
> > > really isn't related to Flex.
> > >
> > > Cheers,
> > > Tim Hoff
> > >
> > > --- In [email protected], "Matias Nicolas Sommi"
> > > nicosommi@ wrote:
> > > >
> > > > Tim, it's a joke, please don't hungry! I know that its only a
> > > simple code,
> > > > and the best practices don't match with the article purpuoses.
> > > >
> > > > 2006/10/11, Matias Nicolas Sommi nicosommi@:
> > > > >
> > > > > In this page say "flex and NET don't play well together"...
> > > after I readed
> > > > > the "ASP NET" code, I think that this flex programmer (who write
> > > the doc)
> > > > > don't play well with .NET... :P
> > > > > PD: I don't play very well with the english, sorry.
> > > > > --
> > > > > Matías Nicolás Sommi
> > > > >
> > > > > 2006/10/11, Tim Hoff TimHoff@:
> > >
> > > > > >
> > > > > > Hi Sajid,
> > > > > >
> > > > > > Datasets returned from .Net aren't natively recognized by
> > > Flex. To
> > > > > > solve this, you can either use a stored procedure with FOR XML
> > > AUTO, or cast
> > > > > > your dataset to a class. Here is a casting example:
> > > > > >
> > > > > > http://www.cflex.net/showFileDetails.cfm?
> > > ObjectID=418&Object=File&ChannelID=1
> > > > > >
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > P.S. Yes, WebOrb allows you to return datasets.
> > > > > >
> > > > > > --- In [email protected], Sajid Hussain
> > > <enchanter_saj@>
> > > > > > wrote:
> > > > > > >
> > > > > > > Hi to all .
> > > > > > > I am new to flex Development ,I am stuck with following
> > > concepts
> > > > > > >
> > > > > > > I have one webservice method who is returning DataSet ,What
> > > will be
> > > > > > the best way to retrive Datafrom it I m getting player parsing
> > > error
> > > > > > >
> > > > > > > Is necceasry to get Data as Custom Objects from .net to flex
> > > > > > > I saw one example whos is getting data ftom .net but giving
> > > customs to
> > > > > > Objects ..
> > > > > > > How we will bind Custom Objects attributes with Flex ??
> > > > > > > Is there any way to get .net DataTable to Flex
> > > > > > >
> > > > > > > plz suggest me help withour weborb...
> > > > > > > Please do reply ..
> > > > > > > Thanks
> > > > > > >
> > > > > > > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Tired of spam? Yahoo! Mail has the best spam protection
> > > around
> > > > > > > http://mail. yahoo.com
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > > > --
> > > > Matías Nicolás Sommi
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Matías Nicolás Sommi
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Everyone is raving about the all-new Yahoo! Mail.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Matías Nicolás Sommi
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
> countries) for 2¢/min or less.
> >
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to