Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getTesteConexao(){
- String returns = "";
- try {
- SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME_GET_TESTE_CONEXAO);
- request.addProperty("senha", TAG_CHAVE);
- SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
- envelope.setOutputSoapObject(request);
- HttpTransportSE androidHttpTransport = new HttpTransportSE(urlFinal);
- androidHttpTransport.call(SOAP_ACTION, envelope);
- returns = (String) envelope.getResponse();
- } catch (Exception e) {
- e.printStackTrace();
- return "Exception: " + e.getMessage() + "nCause: " + e.getCause();
- }
- return returns;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement