View Single Post
  (#21 (permalink)) Old
subashbala Offline
New Member
 
Posts: 5
Join Date: Mar 2009
Model: Bold
PIN: N/A
Carrier: Rogers
Default Problem using ksoap for accessing web services - 03-16-2009, 01:32 PM

Hi,

I m a newbie BB developer trying to use ksoap on BB JDE 4.3 to connect to a web service.

I followed the steps given in this thread.

Downloaded ksoap2-j2me-core-prev-2.1.2.

Placed the above file in C:\BlackBerry JDE 4.3.0\bin.

Preverified the file with command preverify -classpath "C:\BlackBerry JDE 4.3.0\lib\net_rim_api.jar" ksoap2-j2me-core-prev-2.1.2.jar

Added the preverified file ( present in C:\BlackBerry JDE 4.3.0\bin) to my project in BB JDE 4.3 .

Did a build on the code and got the following output

Building Ksoap2
C:\BlackBerry JDE 4.3.0\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar library=HelloWorldFolder\Ksoap2 HelloWorldFolder\Ksoap2.rapc warnkey=0x52424200;0x52525400;0x52435200 "C:\BlackBerry JDE 4.3.0\subash\HelloWorldFolder\Ksoap2Demo.java" "C:\BlackBerry JDE 4.3.0\jar\ksoap2-j2me-core-prev-2.1.2.jar" "C:\BlackBerry JDE 4.3.0\subash\HelloWorldProjectFolder\helloworld_jd e.png"
Note: C:\BlackBerry JDE 4.3.0\subash\HelloWorldFolder\Ksoap2Demo.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\BlackBerry JDE 4.3.0\subash\HelloWorldFolder\Ksoap2Demo.java:117: Warning!: Invocation of questionable method: java.lang.String.<init>(String) found in: HelloWorldFolder.Ksoap2Demo$Ksoap2DemoScreen.obten erListaArticuloSOAP(String)
C:\BlackBerry JDE 4.3.0\subash\HelloWorldFolder\Ksoap2Demo.java:51: Warning!: inner class 'HelloWorldFolder.Ksoap2Demo$Ksoap2DemoScreen' should be declared static
C:\BlackBerry JDE 4.3.0\jar\ksoap2-j2me-core-prev-2.1.2.jar(org/ksoap2/serialization/MarshalHashtable$ItemSoapObject.class):1: Warning!: inner class 'org.ksoap2.serialization.MarshalHashtable$ItemSoa pObject' should be declared static
Build complete.

But when i run the program on the emulator, i m not seeing the app on the emulator. I ve given an icon , but it doesnt show up.

I dont know where the problem is . Do i have to have any other software up and running? Appreciateif you can help me.

Another thing to mention - i read somewhere that project dependencies have to be set. But when i right click the project and go to project dependencies, it shows ksoap2 , but it is disabled --> it does not allow me to select ksoap2.


Thanks

Last edited by subashbala : 03-16-2009 at 01:39 PM.
   
Reply With Quote