Erro KSOP2 "...org.xmlpull.v1.XmlPullParserException: expected: START_TAG..."

1,749 views
Skip to first unread message

Leonardo Ferreira

unread,
Dec 3, 2014, 5:45:26 AM12/3/14
to androi...@googlegroups.com
Olá pessoal, estou iniciando no android e já me deparei com um erro abaixo que me impede de avançar, gostaria da ajuda de vcs.

public class LoginDAO {
    
    private static final String URL = "http://....35.234:8090/WSDLCHECK.apw?WSDL";    
    private static final String NAMESPACE = "http://...35.234:8090/";

    private static final String LOGIN = "LOGIN";

    public int timeOut = 60000;

    public boolean Login(){
        SoapObject login = new SoapObject(NAMESPACE, LOGIN);

        //SoapObject usr = new SoapObject(NAMESPACE, "");

        login.addProperty("_CUSUARIO", "em...@gmail.com");
        login.addProperty("_CPASSWD", "123456");
        login.addProperty("_CTOKEN", "1234567890");

        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.setOutputSoapObject(login);
        Log.i("ID", "Chamando WebService: "+URL);
        envelope.implicitTypes = true;
        //envelope.dotNet = true;
        HttpTransportSE http = new HttpTransportSE(URL, timeOut);
        try{
            http.call("urn:"+LOGIN, envelope);           
            SoapPrimitive resposta = (SoapPrimitive) envelope.getResponse();
            return Boolean.parseBoolean(resposta.toString());
        }catch (Exception e){
            e.printStackTrace();
            return false;
        }
    }
}

O erro que obtenho é: "...org.xmlpull.v1.XmlPullParserException: expected: START_TAG..."
Segue também um trecho do meu WebService



ducasp

unread,
Dec 3, 2014, 12:05:57 PM12/3/14
to androi...@googlegroups.com
O grupo melhor para essas discussões é Android Brasil - Dev
Reply all
Reply to author
Forward
0 new messages