Add the utilws web service to your client proxy

The utilws web service is an optional web service. However, you must have the utilws web service in your client proxy to run the code sample
Creating your first application for the BlackBerry® Administration API. By default, the wsdl2java proxy generator does not interpret the BlackBerry® Administration API
namespaces as intended. If you use the default namespaces, the proxy generator stores your BlackBerry Administration API packages
in a flat file structure inside a com/rim/ folder. For example, a class in the com.rim.bes.basplugin.dispatcher
package is stored in the client proxy as com/rim/com_rim_bes_basplugin_dispatcher instead of com/rim/bes/basplugin/dispatcher.
You can use the default namespaces, but you must manually change the package names in any code samples, or you can change the package names manually by using Eclipse®. You can define the namespaces, which can be time consuming, but if you save the commands for future reference, you can save time when you generate the client proxy again.

Before you begin:

Create a temporary folder in which to generate the client proxy if a folder does not already exist (for example,
C:\Temp\BAA\proxy).

At the Windows® command prompt, navigate to the bin folder of Apache CXF™.

cd C:\Program Files\apache-cxf-2.1.2\bin\

Perform one of the following tasks to invoke the wsdl2java proxy generator:

Once you have added the -p parameter for each namespace, copy the command from your text editor into your command prompt and invoke the command.

Open the folder C:\Temp\BAA\proxy\com\rim.

If your client proxy folder contains any namespaces that that contain an underscore character, for example com_rim_bes_bas, delete the folder C:\Temp\BAA\proxy\com, define the namespaces in your command correctly, and invoke wsdl2java again.
Also re-add any other web services that you added before you deleted C:\Temp\BAA\proxy\com

Save the command in the text editor. You might need to use it again.

Example: Defining the utilws namespaces.

The following one-line command adds the classes for the utilws web service to the folder C:\Temp\BAA\proxy. Your server might contain more namespace or fewer namespaces.