- Someone
- Friday, October 13th, 2006 at 3:27:53pm MDT
- package testing;
- import java.io.IOException;
- import javax.microedition.lcdui.*;
- import javax.microedition.midlet.*;
- import org.ksoap2.serialization.SoapObject;
- import org.ksoap2.serialization.SoapSerializationEnvelope;
- import org.ksoap2.transport.HttpTransport;
- import org.ksoap2.SoapEnvelope;
- import org.ksoap2.serialization.PropertyInfo;
- import org.xmlpull.v1.XmlPullParserException;
- import java.util.Vector;
- public class Test
- extends MIDlet
- private Display display;
- private List AirChoose;
- private Thread t;
- private SoapObject soapObject;
- private HttpTransport transport;
- private SoapSerializationEnvelope envelope;
- public void startApp() {
- display = Display.getDisplay(this);
- display.setCurrent(AirChoose);
- }
- public void pauseApp() { }
- public void destroyApp(boolean unconditional) { }
- public void run() {
- String method = "getAirLines";
- soapObject = new SoapObject(url, method);
- transport = new HttpTransport(url);
- try {
- airlines = this.soapCallVector(method);
- }
- for(int i=0; i<airline.length; i++) {
- airline[i] = airlines.elementAt(i).toString();
- }
- display.setCurrent(AirChoose);
- }
- public Test() {
- t.start();
- }
- envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
- envelope.bodyOut = soapObject;
- envelope.addMapping("http://xml.apache.org/xml-soap","Vector",PropertyInfo.VECTOR_CLASS);
- try {
- transport.call(method, envelope);
- }catch(XmlPullParserException io) {
- }
- return list;
- }
- }
- java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
- at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
- at com.sun.midp.midlet.Scheduler.schedule(+52)
- at com.sun.midp.main.Main.runLocalClass(+28)
- at com.sun.midp.main.Main.main(+116)
- ksoap2 -> http://jaist.dl.sourceforge.net/sourceforge/ksoap2/ksoap2-j2me-full-2.1.1.jar
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.