Example #1
0
        /// <summary>
        /// The form load event handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Browse_Load(object sender, EventArgs e)
        {
            // Ensure the user has been authenticated
            if (AuthenticationUtils.IsSessionValid == false)
                AuthenticationUtils.startSession("admin", "sametsis");

            // Get a repository and content service from the web service factory
            this.repoService = WebServiceFactory.getRepositoryService();
            this.contentService = WebServiceFactory.getContentService();
            this.authoringService = WebServiceFactory.getAuthoringService();

            // Populate the list box
            populateListBox();
        }
 /// <summary>
 /// Get the content service
 /// </summary>
 /// <param name="endPointAddress"></param>
 /// <returns></returns>
 public static ContentService getContentService(String endPointAddress)
 {
     ContentService contentService = new ContentService();
     contentService.Url = endPointAddress + CONTENT_SERVICE_ADDRESS;
     addSecurityHeader(contentService);
     return contentService;
 }