Add the dispatcherws web service to your client proxy
The dispatcherws web service is optional. 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 to generate the client proxy if one does not already exist. For example, C:\Temp\BAA\proxy.
Example: Defining the dispatcherws namespaces.
The following one-line command adds the classes for the dispatcherws web service to the folder C:\Temp\BAA\proxy. Your server might contain more namespaces or fewer namespaces.
wsdl2java.bat -wv 1.1 -p http://www.rim.com/com.rim.bes.basplugin.emailcommon.dto=com.rim.bes.basplugin.emailcommon.dto -p http://www.rim.com/com.rim.bes.basplugin.dispatcher.dto=com.rim.bes.basplugin.dispatcher.dto -p http://www.rim.com/com.rim.bes.bas.dto=com.rim.bes.bas.dto -p http://www.rim.com/com.rim.bes.bas.baa.dispatcher.dto=com.rim.bes.bas.baa.dispatcher.dto -p http://www.rim.com/com.rim.bes.bas.baa.common.dto=com.rim.bes.bas.baa.common.dto -p http://www.rim.com/com.rim.bes.bas.baa=com.rim.bes.bas.baa -d C:\Temp\BAA\proxy https://<servername>/baaws/dispatcher/ws?wsdl
Next topic: Add the email web service for IBM Lotus Domino
Previous topic: Add the utilws web service to your client proxy