Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Webservice com autenticação

Também não tinha a necessidade mas bom saber que funciona!
Bom trabalho Rômulo!


Em 5 de junho de 2013 11:37, Felipe Aron <felipearon@gmail.com> escreveu:
Legal Rômulo! Apesar de ainda não precisar de autenticação é muito bom aprender coisas novas! :)


Em 5 de junho de 2013 11:27, Rômulo Nadler <romulofnadler@gmail.com> escreveu:

Galera,

Consegui, para quem interessar segue a classe que precisei para fazer a autenticação, abaixo como chamar:

Troca-se o:
   HttpTransportSE ht = new HttpTransportSE(URL);
   ht.call(SOAP_ACTION, envelope);

Por: 
    HttpTransportBasicAuth httpTransport = new HttpTransportBasicAuth(URL, "login", "senha");
    httpTransport.call(SOAP_ACTION, envelope);

No mais é só correr pro abraço...




Em 4 de junho de 2013 17:16, Fred <fredferrao@gmail.com> escreveu:


Em 4 de junho de 2013 16:14, Rômulo Nadler <romulofnadler@gmail.com> escreveu:

Foi criada uma autenticação Basic.

Em 4 de junho de 2013 17:11, Rômulo Nadler <romulofnadler@gmail.com> escreveu:

A autenticação que me referi é ao chamar o webservice ele pede um usuário e senha cadastrado no servidor, se ele não validar esse usuário e senha ele não libera a página.

Em 4 de junho de 2013 17:09, Pedro Subutzki <Pepeu> <falecompepeu@gmail.com> escreveu:

Autenticação no IIS? Qual autenticação?
Não seria mais fácil trabalhar com HTTPS e uma chave criptografada?
Quem saber até mesmo um oAuth!?




Em 4 de junho de 2013 16:48, Rômulo Nadler <romulofnadler@gmail.com> escreveu:
Galera,

Estou com o seguinte problema:
Tenho um método que consome um webservice desenvolvido em C# com a biblioteca  KSOAP para android, fiz vários testes e funcionou sem problemas só que agora foi colocado uma autenticação no IIS, sendo assim é necessário me autenticar para poder consumir o webservice, estou procurando algo na net sobre autenticação com  KSOAP e não achei, se alguem puder ajudar, segue abaixo o código que estou usando.

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);

HttpTransportSE ht = new HttpTransportSE(URL);
ht.call(SOAP_ACTION, envelope);



--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Abraços,
Pedro Subutzki
__________________________________________
HADI - Makes SQLite in Android easy and simple
https://github.com/PepeuCps/Hadi

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
"Frederico Ferrão da Silva"

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Analista-Programador

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Abraços,
Pedro Subutzki
__________________________________________
HADI - Makes SQLite in Android easy and simple
https://github.com/PepeuCps/Hadi

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário