Skip Navigation

Configure the proxy generator to access the keystore

To generate the proxy files that your applications require to use the
BlackBerry Web Services
SOAP APIs, you must configure the proxy generator (wsdl2java.bat) to access the keystore that you created.
  1. Navigate to the bin folder of the
    Apache CXF
    installation (for example, C:\Program Files\Apache CXF\apache-cxf-
    <version>
    \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\jre8\bin\bes.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.