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).
- Run the command prompt as an administrator.
- Typecd, where<file_path><file_path>is the path of the bin folder for yourFor example:Apache CXFinstallation.cd C:\Program Files\Apache CXF\apache-cxf-3.1.7\bin
- Press ENTER.
- To generate the proxy files for the BWS web service, typewsdl2java.bat -wv 1.1 -d, where<proxy_path>https://<server_name>:<port>/enterprise/admin/ws?wsdl<proxy_path>is the path for the proxy files folder,<server_name>is the FQDN of the computer that hosts theBlackBerry UEM, and<port>is theBlackBerry Web Servicesport (default 18084).For example:wsdl2java.bat -wv 1.1 -d C:\Temp\BWSproxy https://bes_server1.test.rim.net:18084/enterprise/admin/ws?wsdl
- Press ENTER.
- Typecd, where<file_path><file_path>is the path of the bin folder of yourApache CXFinstallation. For example:cd C:\Program Files\Apache CXF\apache-cxf-3.1.7\bin
- To generate the proxy files for the BWSUtil web service, typewsdl2java.bat -wv 1.1 -d, using the same values that you used in step 4.<proxy_path>https://<server_name>:<port>/enterprise/admin/util/ws?wsdlFor 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.