Using the code samples in Microsoft Visual C#

After you install and configure your development environment, you can use the code samples in the BlackBerry® Administration API Development Guide to start building your applications.

Many code samples in the BlackBerry Administration API Development Guide use a string named locale. This string represents the region and language that you want your API request to apply to. For example, the string "en_US" represents the United States and the English language. To view all the locales available on your BlackBerry® Enterprise Server, you can use the findLocales() method in the utilws web service.

The code samples provided use the following web service instances:
  • coreWebService
  • dispatcherWebService
  • emailDominoWebService
  • emailExchangeWebService
  • utilWebService

You can create instances only of the web services that you included when you generated the client proxy. You should not have multiple email web services. However, the methods in the email web services can be used interchangeably in most cases .

Code sample: Creating a web service instance

The following code sample creates the coreWebService instance.

public static BAAServiceCore coreWebService = new BAAServiceCore();
coreWebService.Url = "https://" + basURL + "/baaws/core/ws?wsdl";

Was this information helpful? Send us your comments.