views:

34

answers:

1

I am using the ksoap library to access a web service from my BlackBerry app. I need to preverify ksoap.jar, but I can't find any clear information about this. How do I preverify ksoap.jar?

+1  A: 

Ensure you have the JDK and J2ME SDK installed, and have appropriate entries in your PATH environment variable so you can reference SDK tools.

  • Create a new folder
  • Place the ksoap2 JAR in this folder
  • Start a command-line instance in the new folder
  • Invoke the 'preverify' command from the J2ME SDK:

    preverify -verbose -classpath "PATH_TO_RIM_API_JAR" ksoap2-j2me-core-2.1.2.jar

  • Note that you will need the path to the BlackBerry JRE "net_rim_api.jar". The installation directory depends on if you are using the BlackBerry SDK Eclipse Plugin, or you are using the BlackBerry JDE.

  • It may be helpful to note that you won't simply be able to include the preverified ksoap2 JAR as a reference in your BlackBerry application. You will need to create a seperate "BlackBerry Library" project, place the preverified ksoap2 JAR in the project classpath, and then reference this library in your BlackBerry application.
  • The approach I took for using ksoap2 involved copying all of the source files to my application. If you take this approach, you may need to obtain some source files from the ksoap1 project, as some of the files you need aren't in the ksoap2 source tree for some reason.
Chris Hutchinson