Accessing a Web Service from an HTTPS Port

To access an SAP BAPI exposed as a Web Service from an HTTPS port, add the same SAP server certificate you imported into the Unwired Server truststore into an Unwired WorkSpace truststore.

Perform this configuration on the Unwired WorkSpace host, or an SSL security exception is returned when trying to connect to the connection profile of the HTTPS WSDL URL.

  1. Add truststore.jks to the <UnwiredPlatform_InstallDir>\UnwiredPlatform\Eclipse directory.
  2. Use the Java keytool command to add the same SAP server certificate you imported into the Unwired Server truststore into truststore.jks.
  3. Add this argument to the <UnwiredPlatform_InstallDir>\UnwiredPlatform\Eclipse\UnwiredWorkspace.bat file:
     -Djavax.net.ssl.trustStore=%ECLIPSE_ROOT%\truststore.jks
  4. Create and run a setup-truststore.bat file that sets up your truststore environment. For example:
    copy ..\JDK1.6.0_23\jre\lib\security\cacerts truststore.jks
    @echo *
    @echo * Answer Yes to "Trust this certificate?".
    @echo *
    keytool -import -keystore truststore.jks -file sap-doe-vm1.sybase.com.PEM.crt -storepass changeit
    @echo *
    @echo * Add to eclipse vmargs: -Djavax.net.ssl.trustStore=%ECLIPSE_ROOT%\truststore.jks
    @echo *
  5. Restart Unwired WorkSpace.