PDA

View Full Version : Return-type of WebService?


Pipan
09-26-2008, 12:05 AM
Hey, short question:

I have a Webservice made in C# .NET set up which returns values from a CMS-system.

Now I want to populate a MenuBar or simular in Flex with the returned data from the webservice.

Question is, which datatype shall I return in my webmethod?

rawmantick
09-26-2008, 07:30 AM
If i did this, i'd make C# returning XML file (actualy string formatted as XML) with menu structure, and parse it in flex. Since flash now has a very rich and convinient way of working with xml.

Peter Cowling
09-26-2008, 02:15 PM
I will second Romantique's suggestion.

However, if I am going to be working with quite large/complex data sets, and I expect to be doing a lot with the data, I prefer to develop the data into value objects - which I then work into an arraycollection.

Those are the two approaches I tend to employ.