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

KonaKart Programming Forum Board

Started by john, September 17, 2007, 11:45:23 am

Previous topic - Next topic

john

September 17, 2007, 11:45:23 am Last Edit: October 31, 2007, 04:06:47 pm by Brian
This is the section dedicated to questions about programming KonaKart.

One of KonaKart's strengths is the availability of an extensive range of flexible open APIs that allow you to control KonaKart in many different ways.   All of the demonstration applications on the KonaKart web site and in the download packages use these APIs.

There are direct Java APIs and SOAP APIs.

WSDL is available at:
http://www.konakart.com/konakart/services/KKWebServiceEng?wsdl (Application SOAP interface)
and:
http://www.konakart.com/konakartadmin/services/KKWSAdmin?wsdl (Admin Application SOAP Interface)


If you download and install KonaKart, you can access your local copies of these WSDL descriptions at:
http://localhost:8780/konakart/services/KKWebServiceEng?wsdl (Application SOAP interface)
and:
http://localhost:8780/konakartadmin/services/KKWSAdmin?wsdl (Admin Application SOAP Interface)


Before posting, please check:


sunjiangstee

Where is the description where to store my own extended code from the API and how to config to make it work?


R2

I have seen that there is an event api for listening for user logins; however, to perform integration with other systems (Ex: LDAP/SSO), I need an event that get's fired when a user is created the first time as well as updated.  Does anyone know if such an event exists that can be overriden.

Secondly, are there plans for SSO integration in the short/midterm roadmap?

Thanks for any help.


R2

Hey,

Thanks for the reply and the information.  Does the "getCustomerForId" method get called when a new user is being added? or is there another method fired at this time?

Thanks!

kate

Hi,

No, getCustomerForId is called all over the place to retrieve a customer from an Id.

You should probably  look at the registerCustomer call in the application server API:

http://www.konakart.com/javadoc/server/com/konakart/appif/KKEngIf.html#registerCustomer(com.konakart.appif.CustomerRegistrationIf)

You should also be aware that the Admin API has a similar register Customer interface:

http://www.konakart.com/javadoc/admin/com/konakartadmin/appif/KKAdminIf.html#registerCustomer(java.lang.String, com.konakartadmin.app.AdminCustomerRegistration)

Kate

Ted

The Programming Guide (http://www.konakart.com/docs/Programming.html) deals a lot with using the Java API's, using SOAP webservices, running own SQL and customizing the source. There are parts where engine customizations are described and how the Struts/JSP actions, forms, modules and JSP's are to be modified.

All instructions lean a lot towards customizing the current "open-source" customizable Struts code and building the various parts using Ant - which is really nicely documented!

What I was missing when I started to develop a Wicket application a few weeks ago and what would really be a nice-to-have: how to really integrate KonaKart outside the Struts/JSP (frontend/backend) application. The Java API examples are great, single-example showcases, but I had to take a really good look into the Struts source code as to how to configure the engine and interact with the client or server engine. This by itself is not a problem; that's what we open-source developers are used to ;)) But when (ofcourse) on a tight schedule to get a e.g. Wicket application up 'n running real fast tightly integrated with KonaKart a lot more 'general webapplication project' stuff was appreciated. What .jars have to copied from the example frontend to my own application, is there a Maven repository I could use for all KonaKart dependencies, what happens in com.konakart.plugins.KKEngPlugin which I have to mimick in my own webapp to initialize the engine properly, more examples about howto take multi-store programmatically into account - that sort of stuff.

Futhermore; great product and keep up the good work!

trevor

Thanks. Maybe when you get the time you could document some of the steps you had to go through and make them available to the community ?

jcm464

Kate,

This question is for you.

I'm a student and I would like to add extra funtionality to konakart for my project.

I would like to have the customer logging in as a customer as well as a seller from within the actual konakart application not via the admin console.

Can you please give me an idea as to which engines and actions I need to adjust/change in order to achieve this?

regards




Quote from: kate on November 06, 2008, 05:51:00 am
Hi,

No, getCustomerForId is called all over the place to retrieve a customer from an Id.

You should probably  look at the registerCustomer call in the application server API:

http://www.konakart.com/javadoc/server/com/konakart/appif/KKEngIf.html#registerCustomer(com.konakart.appif.CustomerRegistrationIf)

You should also be aware that the Admin API has a similar register Customer interface:

http://www.konakart.com/javadoc/admin/com/konakartadmin/appif/KKAdminIf.html#registerCustomer(java.lang.String, com.konakartadmin.app.AdminCustomerRegistration)

Kate

dhimananil

I am having issue starting konakart server on amazon ec2 cloud. I am using windows 2008 server. Installation didn't have any issue but when I start server using "start and lauch konakart" shortcut a new command window opens and shows following message and doesn't start server. following message is displayed for infinite time. Please let me know if anybody had similar issue. If this is not the correct location for this issue, please provide me link to the correct thread to read out about this issue.

Using CATALINA_BASE:   "C:\Program Files (x86)\KonaKart\bin\/.."
Using CATALINA_HOME:   "C:\Program Files (x86)\KonaKart\bin\/.."
Using CATALINA_TMPDIR: "C:\Program Files (x86)\KonaKart\bin\/..\temp"
Using JRE_HOME:        "C:/Program Files (x86)/Java/jre7"
Using CLASSPATH:       "C:\Program Files (x86)\KonaKart\bin\/..\bin\bootstrap.ja
r;C:\Program Files (x86)\KonaKart\bin\/..\bin\tomcat-juli.jar"
========================================
Waiting for the KonaKart server to start

ming

It's difficult to know what the problem is in your environment.

I'd follow the BAT files that are called and execute each one in a command window so that you can see where the error occurs.