• Welcome to KonaKart Community Forum. Please login or sign up.
 

Konakart SOAP login service requires database access

Started by florinex, September 05, 2014, 12:48:45 pm

Previous topic - Next topic

florinex

Hi,

I'm using KonaKart SOAP web services and I have the following problem:
    when I want to use the login service to get an sessionId for a Admin connection with the following code:

            KKWSAdminIfServiceLocator kkwsaisl = new KKWSAdminIfServiceLocator();
            kkwsaisl.setKKWSAdminEndpointAddress("http://XXXXXXXXX:8780/konakartadmin/services/KKWSAdmin");
            kkwsaisl.setEndpointAddress("KKWSAdmin", "http://XXXXXXXXX:8780/konakartadmin/services/KKWSAdmin");
           
            com.konakartadmin.ws.KKWSAdminIf engine = kkwsaisl.getKKWSAdmin();
            String sessionId = engine.login(DEFAULT_USERNAME, DEFAULT_PASSWORD);


    in the client side I need the following jars to get a sessionId:

             <pathelement location="../webapps/konakart/WEB-INF/lib/konakart_village-4.0.jar" />
             <pathelement location="../webapps/konakart/WEB-INF/lib/konakart_torque-4.0.jar" />
             <pathelement location="../webapps/konakart/WEB-INF/lib/konakart_custom_utils.jar" />
             <pathelement location="../webapps/konakart/WEB-INF/lib/commons-dbcp-1.4.jar" />
             <pathelement location="../webapps/konakart/WEB-INF/lib/commons-pool-1.3.jar" />
        <pathelement location="../webapps/konakart/WEB-INF/lib/commons-beanutils-1.8.0.jar" />
        <pathelement location="../webapps/konakart/WEB-INF/lib/postgresql-9.1-901.jdbc4.jar" />


   jars that are accessing the KonaKart database.

So, when I want to access the login service from client side I need to have all the jars needed for connection with KonaKart database or I don't have a correct code to get the engine (like below). I didn't find an example for Admin engine to access the login service from client side without all the jars for the KonaKart database (in client side).

What am I doing wrong?

Thanks!

Florin

florinex

After I reviewed my context I arrived at the conclusion that in the client side I need only the following jars to get a sessionId:

             <pathelement location="../webapps/konakart/WEB-INF/lib/konakart_village-4.0.jar" />
             <pathelement location="../webapps/konakart/WEB-INF/lib/konakart_torque-4.0.jar" />

without postgresql-9.1-901.jdbc4.jar.