tags:

views:

12

answers:

0

Hi all

I am struggling a proplem for a whole day, i hope somebody can help.

I am trying to get the list file of files located on the server, so i use flex to access a ASP.NET ASMX web services, that returns all the file names in a folder.

I can see that web servicese worked perfectly, however when i try to get the result from flex, i could not figure out how to get the real data i wantted,

public function LoadImage(e:ResultEvent):void{

imageList.dataProvider = e.result;

the e.result has some addtional tags, such as

<GetImageFileListResponse xmlns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;

01417_ccurve_1280x1024.jpg 1915619295407381096.png 21051802471898733113.png

I am only interested in the data starting from . I don't know why the addtioanl tag has been added.

here is the code i have used in flex.

<mx:WebService wsdl="http://localhost/Flex/GetImageFiles.asmx?WSDL" id="imageWs">

Thank you in advance