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 (for example, C:\Temp\BWS\proxy).
  1. On the taskbar, click Start > Run.
  2. Type cmd. Click OK.
  3. 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-2.6.1\bin
  4. Press ENTER.
  5. To generate the proxy files for the BWS web service, type wsdl2java.bat -wv 1.1 -d <proxy_path> https://<server_name>/enterprise/admin/ws?wsdl, where <proxy_path> is the path of the folder you created to store the proxy files, and <server_name> is the name of the computer that hosts the BlackBerry Administration Service. For example:
    wsdl2java.bat -wv 1.1 -d C:\Temp\BWS\proxy https://server1.test.rim.net/enterprise/admin/ws?wsdl
  6. Press ENTER.
  7. 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-2.6.1\bin
  8. To generate the proxy files for the BWSUtil web service, type wsdl2java.bat -wv 1.1 -d <proxy_path> https://<server_name>/enterprise/admin/util/ws?wsdl, where <proxy_path> is the path of the folder you created to store the proxy files, and <server_name> is the name of the computer that hosts the BlackBerry Administration Service. For example:
    wsdl2java.bat -wv 1.1 -d C:\Temp\BWS\proxy https://server1.test.rim.net/enterprise/admin/util/ws?wsdl
A new version of the BlackBerry Web Services is included with each release of the BlackBerry Device Service. If your organization's administrator upgrades the BlackBerry Device Service to a new version, 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.


Was this information helpful? Send us your comments.