Olá amigo,

Copiei o seu código e informei o meu login e senha.
Mesmo assim o erro abaixo ocorre, alguma ideia.


faultCode:Channel.Security.Error
faultString:'Security error accessing url'
faultDetail:'Destination: DefaultHTTP'

valeu,

Jonathan

On 13 dez, 22:15, "Rangel Preis" <[EMAIL PROTECTED]> wrote:
> One, faz o seguinte me diz o que você alterou porque aqui eu peguei
> exatamente o código que estava no email botei meus dados
> [EMAIL PROTECTED], minha senha e no textArea já imprimiu de cara o
> XML do rss.
>
> De qualquer forma manda qual é o erro que tento simular aqui pra ver
> se descubro o que pode estar errado.
>
> Em 13/12/07, one<[EMAIL PROTECTED]> escreveu:
>
>
>
> > Rangel, antes de mais muito obrigado pelo seu codigo..
>
> > executei o seu codigo mas ele continua abrindo uma janela pedindo os
> > dados do google, ou seja nao ta a logar
>
> > ja fiz algumas alteracoes mas nao ta funcionando....
>
> > On 13 dez, 21:05, "Rangel Preis" <[EMAIL PROTECTED]> wrote:
> > > One segue um código que faz o que você deseja, codigo muito ruim mas
> > > da pra entender como se faz, o serviço esta definido como orkut mas
> > > ele chega ate o rss do gmail.
>
> > > Estou tratando a resposta como texto mas depois é so mudar para xml.
>
> > > Espero ter ajudado.
>
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > > layout="absolute" creationComplete="init()">
> > >             <mx:HTTPService
> > >         id="googleService"
>
> > >         result="onResultCookie(event);"
> > >         resultFormat="text"
> > >         fault="onFault(event)"/>
>
> > >             <mx:HTTPService
> > >         id="loginService"
> > >         result="onLogin(event);"
> > >         resultFormat="text"
> > >         fault="onFault(event)"/>
>
> > >             <mx:HTTPService
> > >         id="rssService"
> > >         result="onRSS(event);"
> > >         resultFormat="text"
> > >         fault="onFault(event)"/>
>
> > > <mx:Script>
> > >         <![CDATA[
> > >                 import mx.collections.ArrayCollection;
> > >                 import mx.controls.Alert;
> > >                 import mx.rpc.events.FaultEvent;
> > >                 import mx.rpc.events.ResultEvent;
>
> > >                 private function onRSS(event:ResultEvent):void{
> > >                         textarea.text = String(event.result);
> > >                 }
>
> > >                  private function onResultCookie(event:ResultEvent):void{
> > >                         event.result;
> > >                         var auth:String = 
> > > String(event.result).split("=")[3];
> > >                         auth.length;
>
> > >                         loginService.url 
> > > ="http://www.orkut.com/RedirLogin.aspx?auth="+auth;
> > >                         loginService.send();
>
> > >          }
>
> > >                  private function onLogin(event:ResultEvent):void{
> > >                         
> > > rssService.url="https://mail.google.com/mail/feed/atom.";
> > >                         rssService.send();
>
> > >          }
> > >                 private function init():void {
> > >                         var params:Object = {};
>
> > >                         params["Email"] = "LOGIN";
> > >                         params["Passwd"] = "SENHA";
> > >                         params["service"] = "orkut"
> > >                         googleService.url= 
> > > "https://www.google.com/accounts/ClientLogin";;
> > >                         googleService.useProxy=false;
> > >                         googleService.send(params);
> > >                 }
>
> > >             private function onFault(event:FaultEvent):void{
> > >                 Alert.show(event.fault.message);
>
> > >             }
> > >                 ]]>
> > > </mx:Script>
> > >         <mx:TextArea id="textarea" x="56" y="52" width="605" 
> > > height="523"/>
> > > </mx:Application>
--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para [EMAIL PROTECTED]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Reply via email to