Skip Navigation

Generate the proxy files for the BWS and BWSUtil web services

To avoid duplication type compiler errors, store all of the generated proxy files for the BWS and BWSUtil web services in one folder.
Create a folder to store the proxy files in (for example, C:\Temp\BWSproxy).
  1. Run the command prompt as an administrator.
  2. Type
    cd
    <file_path>
    , where
    <file_path>
    is the path of the bin folder for your
    Apache CXF
    installation.
    For example:
    cd C:\Program Files\Apache CXF\apache-cxf-3.1.7\bin
  3. Press ENTER.
  4. To generate the proxy files for the BWS web service, type
    wsdl2java.bat -wv 1.1 -d
    <proxy_path>
    https://
    <server_name>:<port>
    /enterprise/admin/ws?wsdl
    , where
    <proxy_path>
    is the path for the proxy files folder,
    <server_name>
    is the FQDN of the computer that hosts the
    BlackBerry UEM
    , and
    <port>
    is the
    BlackBerry Web Services
    port (default 18084).
    For example:
    wsdl2java.bat -wv 1.1 -d C:\Temp\BWSproxy https://bes_server1.test.rim.net:18084/enterprise/admin/ws?wsdl
  5. Press ENTER.
  6. Type
    cd
    <file_path>
    , where
    <file_path>
    is the path of the bin folder of your
    Apache CXF
    installation. For example:
    cd C:\Program Files\Apache CXF\apache-cxf-3.1.7\bin
  7. To generate the proxy files for the BWSUtil web service, type
    wsdl2java.bat -wv 1.1 -d
    <proxy_path>
    https://
    <server_name>:<port>
    /enterprise/admin/util/ws?wsdl
    , using the same values that you used in step 4.
    For example:
    wsdl2java.bat -wv 1.1 -d C:\Temp\BWSproxy https://bes_server1.test.rim.net:18084/enterprise/admin/util/ws?wsdl
New versions of the
BlackBerry Web Services
SOAP APIs are included with each release of
BlackBerry UEM
. If your organization's administrator upgrades
BlackBerry UEM
, repeat the steps above to generate an updated set of proxy files. You can add the new proxy files to a different file path and configure your development environment to use the new proxy files, or you can add the proxy files to the same file path to overwrite the previous set of proxy files.