GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Jun-2009, 09:04
Florian_44 Florian_44 is offline
New Member
 
Join Date: Jun 2009
Posts: 1
Florian_44 is on a distinguished road

Problem with Flex and Web Service REST


Hello,



I am on a problem for about a week and I do not succeed in fixing it. I have to call
some Web Services in a Flex application. I call one Web Service REST DocumentREST which send me back a
XML file with a list of URL of others Web Services REST DocumentRESTt/id_Document (which correspond to Documents).
These others Web Services REST send me back details about a document.



The problem is that I can't find a way to go throught all the Web Services in the
list to get the name (which is a node of the result of the Web Services in the list) of a
document and put it in a TextInput. I only manage to get the first of the loop.



My XML file returned by the Web Service DocumentREST is in documentFeed and is like :
<documents>
<document>url_d_un_document</document>
<document>url_d_un_document</document>
<document>url_d_un_document</document>
<document>url_d_un_document</document>
</documents>


[Bindable]
private var informationsFeed:XML;
[Bindable]
public var urlInfo:String="";

private function Name():void{
var i:int;
Alert.show("taille "+this.documentsFeed.document.length());
for (i=this.documentsFeed.document.length()-1;i>=0;i--){
this.urlInfo=this.documentsFeed.document[i];
this.informationsService.send();
Alert.show(urlInfo);
(PanelType)(this.coverflow.getChildAt(i)).nom.text =informationsFeed.nom;
if (informationsFeed.nom == null){
Alert.show("faux");
}
this.urlInfo="";
this.informationsFeed=new XML();
}
}



<mx:HTTPService id="informationsService"
url="{urlInfo}"
resultFormat="e4x"
result="informationsResultHandler(event)"
fault="informationsFaultHandler(event);"/>



Thanks
  #2  
Old 30-Sep-2009, 01:58
staffgs1102 staffgs1102 is offline
New Member
 
Join Date: Sep 2009
Posts: 1
staffgs1102 is on a distinguished road

Re: Problem with Flex and Web Service REST


Thanks for your sharing. Thanks for sharing this useful information. It's great.


__________________
www.globolstaff.com
 
 

Recent GIDBlogInstall Adobe Flash - Without Administrator Rights by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:32.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.