Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:54:24+00:00 2026-06-13T20:54:24+00:00

i am testing the code from SDK to call Alfresco on bitNami Alresco 4.0.e-0

  • 0

i am testing the code from SDK to call Alfresco on bitNami Alresco 4.0.e-0 server with a webapp that is located on same tomcat server as Alfresco. The code hangs at the very first call to AuthenticationUtils to get session. I pretty am sure i supplied the standard bitNami Alfresco user and password for this. Did i miss any libraries? I put most available dependencies as my local maven repositories and code compiles well.

the following is code from SDK without Alfresco license as i could not format the code with it:

package org.alfresco.sample.webservice;

import org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub;
import org.alfresco.webservice.types.Store;
import org.alfresco.webservice.util.AuthenticationUtils;
import org.alfresco.webservice.util.WebServiceFactory;

public class GetStores extends SamplesBase
{
/**
 * Connect to the respository and print out the names of the available 
 * 
 * @param args
 */
public static void main(String[] args) 
    throws Exception
{
    // Start the session
    AuthenticationUtils.startSession(USERNAME, PASSWORD);

    try
    {   
        // Get the respoitory service
        RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();

        // Get array of stores available in the repository
        Store[] stores = repositoryService.getStores();
        if (stores == null)
        {
            // NOTE: empty array are returned as a null object, this is a issue with the generated web service code.
            System.out.println("There are no stores avilable in the repository.");
        }
        else
        {
            // Output the names of all the stores available in the repository
            System.out.println("The following stores are available in the repository:");
            for (Store store : stores)
            {
                System.out.println(store.getScheme() + "://" + store.getAddress());
            }
        }
    }
    finally
    {
        // End the session
        AuthenticationUtils.endSession();
    }
}       
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:54:25+00:00Added an answer on June 13, 2026 at 8:54 pm

    The WebServiceFactory uses

    http://localhost:8080/alfresco/api
    

    as default endpoint.You can change the endpoint by providing a file called webserviceclient.properties on the classpath under alfresco (the resource path: alfresco/webserviceclient.properties)

    The properties file must offer a property called repository.location, which specifies the endpoint URL. Since you are using a bitnami Alfresco instance, it is probably running on port 80. The file should contain the following property entry:

    repository.location=http://localhost:80/alfresco/api
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are testing some code to send email messages using Gmail from a form,
I have 2 files in the directory bar for testing. from the code below,
I am interested in your opinions on unit-testing code that uses Corba to communicate
I have a problem with WCF. My testing code is pretty simple. I call
I'm testing my code that works with dynamic tables in Firefox. The tables I
I'm doing a code testing for a program that calculate the results for a
I downloaded a testing website code from a site and I converted it to
For testing code I'm copying data from a live database to a test database
I'm testing code that is designed to detect when a child process has segfaulted.
I'm using version 6.0.10.0 of the Facebook.dll from the SDK. We are beta testing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.