Permalink
Browse files

Updated code sample to improve logging and timestamps

  • Loading branch information...
1 parent 5ab62b1 commit 9790d347774c56acae61dac965f56c2de981f808 @MCacciacarro MCacciacarro committed Nov 14, 2012
Showing with 1,309 additions and 1,014 deletions.
  1. +87 −70 CS_SampleBwsClient.Console.txt
  2. +91 −75 Java_SampleBwsClient.Console.txt
  3. +840 −716 SampleBwsClient.cs
  4. +291 −153 SampleBwsClient.java
@@ -1,70 +1,87 @@
-Initializing web services...
-Entering Setup()
-Entering GetAuthenticator()
-Calling bwsUtilService.getAuthenticators()...
-...bwsUtilService.getAuthenticators() returned "SUCCESS"
-Exiting GetAuthenticator() with Authenticator object (Name "BlackBerry Administration Service")
-Entering GetEncodedUserName()
-Calling bwsUtilService.getEncodedUsername()...
-...bwsUtilService.getEncodedUsername() returned "SUCCESS"
-Exiting GetEncodedUserName() with value "5,0,0,1,1,0;admin00"
-Exiting Setup() with value "True"
-Getting system information...
-Entering GetSystemInfo()
-Calling bwsService.getSystemInfo()...
-...bwsService.getSystemInfo() returned "SUCCESS"
-bwsService.getSystemInfo() Execution Time: 0.0524 seconds
-bwsService.getSystemInfo() Request UID: a7295aad-8946-42cc-8165-9fd527bc4d30
-bwsService.getSystemInfo() returned the following properties:
-BWS Version: 6.0.0.262
-BAS Version: 6.0.0.265
-Mail Platform: Unknown
-Authenticated User Uid: 1
-Supports PlayBook: Yes
-Exiting GetSystemInfo() with value "True"
-Creating a user...
-Entering CreateUser()
-Creating a user with email address ""user01@example.net""
-Calling bwsService.createUsers()...
-...bwsService.createUsers() returned "SUCCESS"
-User created with UID "7" using Email Address ""user01@example.net""
-Exiting CreateUser() with value "True"
-Displaying a user's details...
-Entering DisplayUserDetails()
-Entering GetUser()
-Calling bwsService.getUsers()...
-...bwsService.getUsers() returned "SUCCESS"
-Exiting GetUser() with User object (UID "2")
-Displaying details for user with email address ""user01@example.net""
-Calling bwsService.getUsersDetail()...
-...bwsService.getUsersDetail() returned "SUCCESS"
-User details:
-Display Name: User 01
-User UID: 2
-Last Login Time: 03/19/2012 18:03:58
-Indirect IT policy names: Default
-User's device details:
-Device 1 data
----------------
-PIN: 12G34H56
-Model: PB 16GB WIFI
-Phone Number:
-Active Carrier:
-Network: Wi-Fi
-Serial Number: 0
-State: RUNNING
-IT Policy Name: Default
-Platform Version: 2.0.0.190 (Platform 2.0.0.190)
-Total Messages Expired: 0
-Total Messages Filtered: 0
-Total Messages Forwarded: 0
-Total Messages Pending: 0
-Total Messages Sent: 0
----------------
-User's account details:
-Account 1 data
----------------
-Email Address: user01@example.net
----------------
-Exiting DisplayUserDetails() with value "True"
-Press Enter to exit
+00:00.002 Initializing web services...
+00:00.007 Entering Setup()
+00:00.008 Initializing BWS web service stub
+00:01.297 BWS web service stub initialized
+00:01.297 Initializing BWSUtil web service stub
+00:01.469 BWSUtil web service stub initialized
+00:01.471 Entering GetAuthenticator()
+00:01.472 Calling bwsUtilService.getAuthenticators()...
+00:01.709 ...bwsUtilService.getAuthenticators() returned "SUCCESS"
+00:01.709 Execution Time: 0.0259 seconds
+00:01.710 Request UID: 02cf09fb-748f-4953-b952-9036982bffb3
+00:01.710 Exiting GetAuthenticator() with Authenticator object (Name "BlackBerry Administration Service")
+00:01.712 Entering GetEncodedUserName()
+00:01.713 Calling bwsUtilService.getEncodedUsername()...
+00:01.747 ...bwsUtilService.getEncodedUsername() returned "SUCCESS"
+00:01.747 Execution Time: 0.0000 seconds
+00:01.748 Request UID: e51b6ea2-9221-4a31-a111-507f74d48599
+00:01.748 Exiting GetEncodedUserName() with value "5,0,0,1,1,0;admin00"
+00:01.753 Exiting Setup() with value "True"
+00:01.753 Getting system information...
+00:01.755 Entering GetSystemInfo()
+00:01.756 Calling bwsService.getSystemInfo()...
+00:02.727 ...bwsService.getSystemInfo() returned "SUCCESS"
+00:02.727 Execution Time: 0.1046 seconds
+00:02.727 Request UID: c3f6cdfb-0aaf-488a-9544-c51ee41b4cf2
+00:02.728 bwsService.getSystemInfo() returned the following properties:
+BWS Version: 5.0.2
+BAS Version: 6.2.0.366
+Mail Platform: Unknown
+Authenticated User Uid: 1
+Supports PlayBook: Yes
+Email Address Is Mandatory: No
+Email Address Is Unique: No
+External User Uid Is Searchable: Yes
+00:02.729 Exiting GetSystemInfo() with value "True"
+00:02.729 Creating a user...
+00:02.732 Entering CreateUser()
+00:02.733 Creating a user with email address ""BRKTest0003@core.sqm.testnet.rim.net""
+00:02.734 Calling bwsService.createUsers()...
+00:04.397 ...bwsService.createUsers() returned "SUCCESS"
+00:04.398 Execution Time: 1.6135 seconds
+00:04.398 Request UID: 379c4c12-95b7-4d6a-a27a-8fe827448775
+User created with UID "16" using Email Address ""BRKTest0003@core.sqm.testnet.rim.net""
+00:04.399 Exiting CreateUser() with value "True"
+00:04.399 Displaying a user's details...
+00:04.406 Entering DisplayUserDetails()
+00:04.406 Displaying details for user with email address ""BRKTest0001@core.sqm.testnet.rim.net""
+00:04.408 Entering GetUser()
+00:04.410 Calling bwsService.getUsers()...
+00:04.654 ...bwsService.getUsers() returned "SUCCESS"
+00:04.654 Execution Time: 0.0853 seconds
+00:04.655 Request UID: b2163ef4-8a76-4f1b-af34-2b68f7016318
+00:04.655 Exiting GetUser() with User object (UID "2")
+00:04.656 Calling bwsService.getUsersDetail()...
+00:05.461 ...bwsService.getUsersDetail() returned "SUCCESS"
+00:05.461 Execution Time: 0.3601 seconds
+00:05.461 Request UID: fcb55dbf-3b0e-4623-aa88-e32eb99d91cc
+User details:
+Display Name: BRKTest0001 BRKTest0001
+User UID: 2
+Last Login Time: 10/26/2012 18:32:42
+Indirect IT policy names: Default
+User's device details:
+Device 1 data
+---------------
+PIN: 332DBC0D
+Model: BlackBerry� PlayBook� tablet 16GB
+Phone Number:
+Active Carrier:
+Network: CDMA,GSM,LTE,HSPA+,Wi-Fi,Bluetooth
+Serial Number: 990001240049197
+State: RUNNING
+IT Policy Name: Default
+Platform Version: 10.0.9.785
+Total Messages Expired: 0
+Total Messages Filtered: 0
+Total Messages Forwarded: 0
+Total Messages Pending: 0
+Total Messages Sent: 0
+---------------
+User's account details:
+Account 1 data
+---------------
+Email Address: BRKTest0001@core.sqm.testnet.rim.net
+---------------
+00:05.496 Exiting DisplayUserDetails() with value "True"
+Press Enter to exit
@@ -1,75 +1,91 @@
-Initializing web services...
-Entering setup()
-Mar 21, 2012 2:21:11 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
-INFO: Creating Service {http://ws.rim.com/enterprise/admin}BWSService from class com.rim.ws.enterprise.admin.BWS
-Mar 21, 2012 2:21:15 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
-INFO: Creating Service {http://ws.rim.com/enterprise/admin}BWSUtilService from class com.rim.ws.enterprise.admin.BWSUtil
-Entering getAuthenticator()
-Calling _bwsUtil.getAuthenticators()...
-..._bwsUtil.getAuthenticators() returned "SUCCESS"
-Exiting getAuthenticator() with Authenticator object (Name "BlackBerry Administration Service")
-Entering getEncodedUserName()
-Calling _bwsUtil.getEncodedUsername()...
-..._bwsUtil.getEncodedUsername() returned "SUCCESS"
-Exiting getEncodedUserName() with value "5,0,0,1,1,0;admin00"
-Exiting setup() with value "true"
-Getting system information...
-Entering getSystemInfo()
-Calling _bws.getSystemInfo()...
-..._bws.getSystemInfo() returned "SUCCESS"
-_bws.getSystemInfo() Execution Time: 0.1356 seconds
-_bws.getSystemInfo() Request UID: bf7dce44-2e25-47ea-9078-5c41a9cb8fed
-_bws.getSystemInfo() returned the following properties:
-BWS Version: 6.0.0.262
-BAS Version: 6.0.0.265
-Mail Platform: Unknown
-Authenticated User Uid: 1
-Supports PlayBook: Yes
-Exiting getSystemInfo() with value "true"
-Creating a user...
-Entering createUser()
-Creating a user with email address ""user01@example.net""
-Calling _bws.createUsers()...
-..._bws.createUsers() returned "SUCCESS"
-User created with UID "5" using Email Address ""user01@example.net""
-Exiting createUser() with value "true"
-Displaying a user's details...
-Entering displayUserDetails()
-Displaying details for user with email address ""user01@example.net""
-Entering getUser()
-Calling _bws.getUsers()...
-..._bws.getUsers() returned "SUCCESS"
-Exiting getUser() with User object (UID "2")
-Calling _bws.getUsersDetail()...
-..._bws.getUsersDetail() returned "SUCCESS"
-User details:
-Display Name: User 01
-User UID: 2
-Last Login Time: 03/19/2012 18:03:58
-Indirect IT policy names: Default
-User's device details:
-Device 1 data
----------------
-PIN: 12G34H56
-Model: PB 16GB WIFI
-Phone Number:
-Active Carrier:
-Network: Wi-Fi
-Serial Number: 0
-State: RUNNING
-IT Policy Name: Default
-Platform Version: 2.0.0.190 (Platform 2.0.0.190)
-Total Messages Expired: 0
-Total Messages Filtered: 0
-Total Messages Forwarded: 0
-Total Messages Pending: 0
-Total Messages Sent: 0
----------------
-User's account details:
-Account 1 data
----------------
-Email Address: user01@example.net
----------------
-Exiting displayUserDetails() with value "true"
-Press Enter to exit
-
+00:00.025 Initializing web services...
+00:00.030 Entering setup()
+00:00.032 Initializing BWS web service stub
+Oct 30, 2012 10:45:55 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
+INFO: Creating Service {http://ws.rim.com/enterprise/admin}BWSService from class com.rim.ws.enterprise.admin.BWS
+00:03.615 BWS web service stub initialized
+00:03.615 Initializing BWSUtil web service stub
+Oct 30, 2012 10:45:58 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
+INFO: Creating Service {http://ws.rim.com/enterprise/admin}BWSUtilService from class com.rim.ws.enterprise.admin.BWSUtil
+00:04.657 BWSUtil web service stub initialized
+00:04.699 Entering getAuthenticator()
+00:04.699 Calling _bwsUtil.getAuthenticators()...
+00:05.406 ..._bwsUtil.getAuthenticators() returned "SUCCESS"
+00:05.406 Execution Time: 0.0219 seconds
+00:05.409 Request UID: 85a06f84-b7d7-407a-8493-0bacffaa9a68
+00:05.410 Exiting getAuthenticator() with Authenticator object (Name "BlackBerry Administration Service")
+00:05.410 Entering getEncodedUserName()
+00:05.410 Calling _bwsUtil.getEncodedUsername()...
+00:05.423 ..._bwsUtil.getEncodedUsername() returned "SUCCESS"
+00:05.423 Execution Time: 0.0000 seconds
+00:05.424 Request UID: bea76c60-c53b-45e5-8c90-f0cc737b2132
+00:05.424 Exiting getEncodedUserName() with value "5,0,0,1,1,0;admin00"
+00:05.424 Exiting setup() with value "true"
+00:05.424 Getting system information...
+00:05.425 Entering getSystemInfo()
+00:05.425 Calling _bws.getSystemInfo()...
+00:05.592 ..._bws.getSystemInfo() returned "SUCCESS"
+00:05.593 Execution Time: 0.1075 seconds
+00:05.593 Request UID: 4a9655de-7839-40c1-81a8-ded6c06ea75e
+00:05.593 _bws.getSystemInfo() returned the following properties:
+BWS Version: 5.0.2
+BAS Version: 6.2.0.366
+Mail Platform: Unknown
+Authenticated User Uid: 1
+Supports PlayBook: Yes
+Email Address Is Mandatory: No
+Email Address Is Unique: No
+External User Uid Is Searchable: Yes
+00:05.594 Exiting getSystemInfo() with value "true"
+00:05.594 Creating a user...
+00:05.594 Entering createUser()
+00:05.595 Creating a user with email address ""BRKTest0003@core.sqm.testnet.rim.net""
+00:05.595 Calling _bws.createUsers()...
+00:07.264 ..._bws.createUsers() returned "SUCCESS"
+00:07.265 Execution Time: 1.6499 seconds
+00:07.265 Request UID: 75ce6161-c263-475f-877c-4f57ede0e5f3
+User created with UID "15" using Email Address ""BRKTest0003@core.sqm.testnet.rim.net""
+00:07.265 Exiting createUser() with value "true"
+00:07.265 Displaying a user's details...
+00:07.266 Entering displayUserDetails()
+00:07.266 Displaying details for user with email address ""BRKTest0001@core.sqm.testnet.rim.net ""
+00:07.266 Entering getUser()
+00:07.266 Calling _bws.getUsers()...
+00:07.369 ..._bws.getUsers() returned "SUCCESS"
+00:07.369 Execution Time: 0.0829 seconds
+00:07.369 Request UID: b2916a4a-250c-448f-a201-9b4d07a0de65
+00:07.370 Exiting getUser() with User object (UID "2")
+00:07.370 Calling _bws.getUsersDetail()...
+00:07.783 ..._bws.getUsersDetail() returned "SUCCESS"
+00:07.783 Execution Time: 0.3707 seconds
+00:07.784 Request UID: 56365229-4e86-4f59-bbcc-1ea134c9be4c
+User details:
+Display Name: BRKTest0001 BRKTest0001
+User UID: 2
+Last Login Time: 10/26/2012 18:32:42
+Indirect IT policy names: Default
+User's device details:
+Device 1 data
+---------------
+PIN: 332DBC0D
+Model: BlackBerry� PlayBook� tablet 16GB
+Phone Number:
+Active Carrier:
+Network: CDMA,GSM,LTE,HSPA+,Wi-Fi,Bluetooth
+Serial Number: 990001240049197
+State: RUNNING
+IT Policy Name: Default
+Platform Version: 10.0.9.785
+Total Messages Expired: 0
+Total Messages Filtered: 0
+Total Messages Forwarded: 0
+Total Messages Pending: 0
+Total Messages Sent: 0
+---------------
+User's account details:
+Account 1 data
+---------------
+Email Address: BRKTest0001@core.sqm.testnet.rim.net
+---------------
+00:07.786 Exiting displayUserDetails() with value "true"
+Press Enter to exit
Oops, something went wrong.

0 comments on commit 9790d34

Please sign in to comment.