Expand my Community achievements bar.

Web Service Problems

Avatar

Level 2
Hi,



I have a couple of questions concerning using Flex and .NET
Web Services. Thank you very much for your input!





1) Inserting a Flex data service in the MXML file...



According to the article at
http://livedocs.adobe.com/flex/1/flex_builder_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Using...
I should be able to insert a Flex data service control by using
Window-->Data menu item. For some reason, I don't have this
option in Eclipse. Do I need to install something else or upgrade
Flex to be able to access this control?









2) Flex/.NET Question



I have built a .NET Web Service which returns data in a
DataSet object and I am unable to access the data from Flex. For
Flex/.NET compatibility, should I be using a different .NET object
to return the data? I have built another .NET service which returns
a simple string and Flex was able to interpret it successfully, but
Flex doesn't seem to be able to interpret the data in the DataSet
object.





2 Replies

Avatar

Level 2
What version of Flex Builder are you on? Please see these
relavant links. There have been improvements and bug fixes to web
services 2.0.1 implmentation with specific attention payed to .NET
requests.



Note that in the LCDS 2.5 release that will be out soon the
web services implementation has be re-written all together with
much greater support for DataSet, DataTable and other .NET objects,
as well as vast improvements to the entire web services supported
code.




http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex201_sdk.html#fixedbugs




http://www.adobe.com/support/flex/downloads_updaters.html#flex2

Avatar

Level 2
Thanks for the reply. I found an example which uses an array
of objects in the .Net web service. The solution can be seen at
http://weblogs.asp.net/astopford/articles/106476.aspx.