KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: andrea.castelli on February 22, 2011, 04:55:46 pm

Title: Java API vs SOAP
Post by: andrea.castelli on February 22, 2011, 04:55:46 pm
Hi KK people,
I'm evaluating an integration of KK, but I'm deciding which is the better way.

I don' t understand by documentation if Java API uses SOAP underneath.

What should I check in my project/architecture to decide to use API or SOAP?

Thank you.
Best regards.
Andrea
Title: Re: Java API vs SOAP
Post by: trevor on February 22, 2011, 05:05:05 pm
If you can integrate KK into the same web app as your other application, then you should use the Java API since it is the fastest. If KK is in another web app or another server, then you should use the SOAP or RMI APIs.

The code calling the KK APIs is identical, whichever flavor of API you decide to use because all you need to do is to instantiate the correct KK Engine (they all implement the same interface) and it looks after the plumbing. i.e. Even when using SOAP, you don't have to get down to the WSDL level and produce your own stubs etc.

And no, the Java API doesn't use SOAP underneath.

Hope this helps  :)
Title: Re: Java API vs SOAP
Post by: andrea.castelli on February 23, 2011, 01:11:01 pm
Thank you. I'll come back later when I dive into the code.

Andrea