Might you be calling a .net webservice ?

I have problems with 'encoding' (see post: http://groups.yahoo.com/group/flexcoders/message/25547)

cheers

-michael


On 11/29/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
In your handler, loop over the catalog array and try to display
User_Name.
Tracy


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On
Behalf Of brownd_92
Sent: Tuesday, November 29, 2005 10:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Webservice not working! Any Ideas.

Ive checked the XML and it works fine.
Its returns basically the smae format of xml as in one of the
examples. However, I have to use a webservice to call the method and
not a httpservice tag.
I really dont know why it wont work!! if its the same xml as the
example only returned from a webservice!

Cheers for the help



--- In flexcoders@yahoogroups.com, Aldo Bucchi <[EMAIL PROTECTED]>
wrote:
>
> I can't tell by glimpsing...
> Have you checked if the XML arrives ok?
>
> On 11/29/05, brownd_92 <[EMAIL PROTECTED]> wrote:
> > Hi there,
> > I have a webservice that returns an XML Document. I have followed
> > the examples in flex 2 to the letter and still cant get it to
work!!
> >
> > This is my MXML File:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> >
> > <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"
> >     creationComplete="srv.logonXML1.send()">
> >
> >     <mx:Script>
> >
> >         import mx.collections.ArrayCollection;
> >         import mx.rpc.events.*;
> >         import mx.controls.Alert;
> >
> >         [Bindable]
> >         public var catalog:ArrayCollection;
> >
> >         private function resultHandler(event:ResultEvent)
> >         {
> >             catalog = new ArrayCollection
> > (srv.logonXML1.result.NewDataSet);
> >             //Alert.show("Webservice Fired!");
> >         }
> >
> >         private function faultHandler(event:FaultEvent)
> >         {
> >             Alert.show(event.fault.faultstring, "Error requesting
> > data");
> >         }
> >
> >     </mx:Script>
> >
> >   <mx:WebService id="srv"
> > wsdl="http://localhost/bookingservice/Service.asmx?wsdl"
> > showBusyCursor="true"   result="resultHandler(event)"
> > fault="faultHandler(event)">
> >         <mx:operation name="ReturnString"/>
> >         <mx:operation name="logonXML1">
> >                 <mx:request>
> >                 <uname>"[EMAIL PROTECTED]"</uname>
> >                 <upassword>"secura140"</upassword>
> >         </mx:request>
> >         </mx:operation>
> > </mx:WebService>
> >
> >     <mx:Tile>
> >         <mx:Repeater id="list" dataProvider="{catalog}">
> >             <mx:VBox>
> >                 <mx:Label text="{list.currentItem.User_Name}"/>
> >             </mx:VBox>
> >         </mx:Repeater>
> >     </mx:Tile>
> >
> > </mx:Application>
> >
> >
> > This is what my webservice returns:
> >
> >
> >   <?xml version="1.0" encoding="utf-8" ?>
> >  <NewDataSet>
> >  <login>
> >   <User_ID>1</User_ID>
> >   <User_Name>[EMAIL PROTECTED]</User_Name>
> >   <User_Password>dsadsad</User_Password>
> >   <User_Minutes>120</User_Minutes>
> >   </login>
> >   </NewDataSet>
> >
> >
> > Any Ideas why it wont show anything on the screen?
> >
> > Thanks
> >
> > David
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> ::::: Aldo Bucchi :::::
> mobile (56) 8 429 8300
>







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











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




YAHOO! GROUPS LINKS






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




YAHOO! GROUPS LINKS




Reply via email to