Android ksoap2 not working after downloading project from git -


i have android client consuming netbeans webservice ksoap2 library. working until yesterday, when had format computer.

i downloaded project git , it's not working, keeps giving me timeout exception, though webservice works perfectly.

this class consumes webservice:

private class asynccallwsverificausuario extends asynctask<string, void, void> {  private final string namespace = "http://ws/"; private final string url = "http://localhost:8080/colecaofilmes/colecaofilmes"; private final string soap_action = "http://localhost:8080/colecaofilmes/colecaofilmes/verificausuario"; private final string method_name = "verificausuario";          @override         protected void doinbackground(string... params) {             getresposta();             return null;         }          @override         protected void onpostexecute(void result) {          }          @override         protected void onpreexecute() {          }          @override         protected void onprogressupdate(void... values) {         }          public void getresposta() {             //create request             soapobject request = new soapobject(namespace, method_name);              propertyinfo login = new propertyinfo();             login.type = propertyinfo.string_class;             login.setvalue(logincadastro.gettext().tostring());             login.setname("login");             login.settype((string.class));             request.addproperty(login);              propertyinfo senha = new propertyinfo();             senha.type = propertyinfo.string_class;             senha.setvalue(senhacadastro.gettext().tostring());             senha.setname("senha");             senha.settype((string.class));             request.addproperty(senha);              soapserializationenvelope envelope = new soapserializationenvelope(soapenvelope.ver11);             envelope.setoutputsoapobject(request);             httptransportse androidhttptransport = new httptransportse(url);              try {                 androidhttptransport.call(soap_action, envelope);                 soapprimitive response = (soapprimitive) envelope.getresponse();              } catch (exception e) {                 e.printstacktrace();             }         }     } 

my netbeans webservice:

netbeans webservice

am forgetting something? don't it, working before had format computer, , local version last version on git repository.

so, if helps anyone, here's happened. there nothing wrong project, problem switching network location on windows public private. if had known before, wouldn't have lost week of debugging , praying.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -