Pessoal, tenho o seguinte código abaixo:
public SimpleCancellableTask getTskEnviar() {
if (tskEnviar == null) {
// write pre-init user code here
tskEnviar = new SimpleCancellableTask();
tskEnviar.setExecutable(new org.netbeans.microedition.util.Executable() {
public void execute() throws Exception {
// write task-execution user code here
try{
String namespace = "http://tempuri.org/CadastrarTeste";
String url_ws = "http://localhost:2925/Service_Chamados.asmx";
String method ="CadastrarTeste";
SoapObject request = new SoapObject(namespace, method);
request.addProperty("NOM_USUR", txtNome.getString());
request.addProperty("TEL_USUR", txtTelefone.getString());
request.addProperty("ALTURA", txtAltura.getString());
request.addProperty("PESO", txtPeso.getString());
HttpTransport HttpTransport = new HttpTransport(url_ws);
HttpTransport.setUrl(url_ws);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransport.call(namespace, envelope);
}
catch(Exception e)
{
e.getMessage();
//e.printStackTrace();
}
}
});
// write post-init user code here
}
return tskEnviar;
}
Alguem sabe o que pode estar acontecendo?
