Faa pessoal... estou com o seguinte erro na minha MIDlet... Alguem sabe o que pode ser...:
Error preverifying class bin.EventList Class loading error: Wrong name C:\Documents and Settings\ADMIN\Desktop\ConsumidorWebService\nbproject\build-impl.xml:431: Preverification failed with error code 1. BUILD FAILED (total time: 5 seconds)
A baixo segue o codigo da aplicação de Celular:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
* @author ADMIN
*/
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.TextBox;
import org.ksoap.SoapObject;
import org.ksoap.transport.HttpTransport;
public class Client extends javax.microedition.midlet.MIDlet {
private Display display;
private String url = "http://localhost:8080/TResWebService/TesteServicoWebService?WSDL";
TextBox textbox = null;
public void startApp() {
display = Display.getDisplay(this);
try {
testWebService();
} catch (Exception ex) {
System.out.println(ex);
}
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
public void testWebService() throws Exception {
StringBuffer stringBuffer = new StringBuffer();
TextBox textBox = null;
// Chama o WebService
SoapObject client = new SoapObject(url,"soma");
client.addProperty("valor1",new Integer(2));
client.addProperty("valor2",new Integer(4));
HttpTransport ht = new HttpTransport(url,"soma");
stringBuffer.append("Resultado: " + ht.call(client));
// mostra o valor do resultado na tela.
textBox = new TextBox("Teste WebService", stringBuffer.toString(), 1024, 0);
display.setCurrent(textBox);
}
}
/*public class Client extends MIDlet {
public void startApp() {
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}*/