• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Reads an object with Web Service

insdo

Lurker
Hello everyone I'm trying to implement a server firebird with webservice for android.
But I am encountering problems consult the android. If someone can help me thank you ...

  1. package br.com.appwebservice;
  2. import android.util.Log;
  3. public class WebService
  4. {
  5. private static final int TIMEOUT_CONEXAO = 20000; // 20 segundos
  6. private static final int TIMEOUT_SOCKET = 30000; // 30 segundos
  7. private static final int TAM_MAX_BUFFER = 10240; // 10 Kbytes
  8. private String url;
  9. private Pessoa pessoa;
  10. public WebService(String url) {
  11. this.url = url;
  12. }
  13. public Pessoa getConsulta(){
  14. String parser = "";
  15. try {
  16. HttpParams httpParams = new BasicHttpParams();
  17. httpParams.setIntParameter("id", 1);
  18. // configura o timeout da conex
 
Back
Top Bottom