Configure the proxy generator to access the keystore

To generate the proxy files that your applications require to use the BlackBerry Web Services, you must configure the proxy generator (wsdl2java.bat) to access the keystore that you created.
Generate a keystore and import the BlackBerry Administration Service certificate into the keystore.
  1. Navigate to the bin folder of the Apache CXF installation (for example, C:\Program Files\Apache CXF\apache-cxf-2.6.1\bin).
  2. In a text editor, open wsdl2java.bat.
  3. After "%JAVA_HOME%\bin\java", type the following: -Djavax.net.ssl.trustStorePassword=<password> -Djavax.net.ssl.trustStore="<keystore_path>", where <password> is the keystore password that you specified, and <keystore_path> is the full path of the keystore that you created. For example:
    "%JAVA_HOME%\bin\java" -Djavax.net.ssl.trustStorePassword=password
    -Djavax.net.ssl.trustStore="C:\Program Files\Java\jre7\bin\bas.keystore" -Xmx128M
    -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%"
    -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties"
    org.apache.cxf.tools.wsdlto.WSDLToJava %*
  4. Save and close the file.
Generate the client proxy files for the BWS and BWSUtil web services.


Was this information helpful? Send us your comments.