Exemple #1
0
        public static AuthoringService getAuthoringService(String endPointAddress)
        {
            AuthoringService authoringService = new AuthoringService();

            authoringService.Url = endPointAddress + AUTHORING_SERVICE_ADDRESS;
            addSecurityHeader(authoringService);
            return(authoringService);
        }
Exemple #2
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();
        }