KonaKart OpenCms Integration Module

Similar documents
KonaKart Portlet Installation for Liferay. 6 th February DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1.

Implementing SQI via SOAP Web-Services

Create e-commerce website Opencart. Prepared by : Reth Chantharoth Facebook : rtharoth@yahoo.

NGASI AppServer Manager SaaS/ASP Hosting Automation for Cloud Computing Administrator and User Guide

Using Actian PSQL as a Data Store with VMware vfabric SQLFire. Actian PSQL White Paper May 2013

XMLVend Protocol Message Validation Suite

A Sample OFBiz application implementing remote access via RMI and SOAP Table of contents

KINETIC SR (Survey and Request)

Copyright 2013 Consona Corporation. All rights reserved

PDQ-Wizard Prototype 1.0 Installation Guide

Setup Guide for Magento and BlueSnap

Shop by Manufacturer Custom Module for Magento

SEARCH The National Consortium for Justice Information and Statistics. Web Services and NIEM: Realizing the Value of Available Tools

Builder User Guide. Version 5.4. Visual Rules Suite - Builder. Bosch Software Innovations

Java Web Services Developer Pack. Copyright 2003 David A. Wilson. All rights reserved.

Portal Factory CMIS Connector Module documentation

Builder User Guide. Version Visual Rules Suite - Builder. Bosch Software Innovations

Web Services Platform Guide

: Test 217, WebSphere Commerce V6.0. Application Development

Configuring the LCDS Load Test Tool

Crystal Reports Integration Plugin for JIRA

SDK Code Examples Version 2.4.2

GETTING STARTED GUIDE

Oracle Endeca Information Discovery Integrator

Configuring Apache HTTP Server With Pramati

Building and Using Web Services With JDeveloper 11g

User and Developer Guide

Written by Wirabumi Software Sunday, 30 December :27 - Last Updated Thursday, 03 January :52

Setup Guide for PrestaShop and BlueSnap

BPM Scheduling with Job Scheduler

Java Servlet and JSP Programming. Structure and Deployment China Jiliang University

Plugin Integration Guide

Prestashop Ship2MyId Module. Configuration Process

Automating Testing and Configuration Data Migration in OTM/GTM Projects using Open Source Tools By Rakesh Raveendran Oracle Consulting

1z0-102 Q&A. DEMO Version

How to install IDA floating licenses on a Windows server

Google Trusted Stores Setup in Magento

Practice Fusion API Client Installation Guide for Windows

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Stripe Payment Module Magento 2 USER MANUAL MAGEDELIGHT.COM SUPPORT E: SUPPORT@MAGEDELIGHT.COM P: +1-(248)

Software Development. COMP220/COMP285 Seb Coope Introducing Ant

QAS Address Verification Module for Magento

ECOMMERCE SITE LIKE- GRAINGER.COM

Setting Up CAS with Ofbiz 5

Emerald. Network Collector Version 4.0. Emerald Management Suite IEA Software, Inc.

Implementing a Web Service Client using Java

PaperCut Payment Gateway Module - RBS WorldPay Quick Start Guide

Centers for Medicare and Medicaid Services. Connect: Enterprise Secure Client (SFTP) Gentran. Internet Option Manual

CafePilot has 3 components: the Client, Server and Service Request Monitor (or SRM for short).

Deploying Intellicus Portal on IBM WebSphere

PEtALS Quick Start. PEtALS Team Roland NAUDIN - February

Automatic Configuration of Slave Nameservers (BIND only)

Force.com Migration Tool Guide

Overview of Web Services API

Trytond Magento Documentation

Mutual Fund Web Service Developer Guide

Consuming, Providing & Publishing WS

WIRIS quizzes web services Getting started with PHP and Java

Liferay Enterprise ecommerce. Adding ecommerce functionality to Liferay Reading Time: 10 minutes

Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version

Sample HP OO Web Application

This guide shows you the process for adding ecart to your online store so that you can start selling products online.

TCH Forecaster Installation Instructions

FaxCore 2007 Getting Started Guide (v1.0)

Feith Dashboard iq Server Version 8.1 Install Guide

PaperCut Payment Gateway Module CyberSource Quick Start Guide

How to simulate network devices using the Verax SNMP Simulator (Linux/Windows)

EMC Documentum Composer

Oracle Service Bus Examples and Tutorials

About the Authors About the Technical Reviewer

Shipbeat Magento Module. Installation and user guide

Cloud Fulfilment. Magento Integration Document. For API Version: 1.0. Document Version 1.0 June Cloud Fulfilment Magento Integration Version 1.

Deploying EMC Documentum WDK Applications with IBM WebSEAL as a Reverse Proxy

2012 Nolio Ltd. All rights reserved

Upgrading MySQL from 32-bit to 64-bit

Crawl Proxy Installation and Configuration Guide

FileMaker 14. ODBC and JDBC Guide

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

Software Requirements Specification for POS_Connect Page 1. Software Requirements Specification. for. POS_Connect. Version 1.0

EMC RepliStor for Microsoft Windows ERROR MESSAGE AND CODE GUIDE P/N REV A02

Course Name: Course in JSP Course Code: P5

Getting Started with Web Applications

EMC Clinical Archiving

Crystal Reports for Eclipse

Installation Guide Version 3.1

Oracle Managed File Getting Started - Transfer FTP Server to File Table of Contents

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

The SkySQL Administration Console

SmithCart Google Analytics

Pro<DOC/> e-commerce Technology An Introduction

1. Building Testing Environment

Secure Messaging Server Console... 2

1 Disabling Access to USB Mass Storage Devices

FlexSim LAN License Server

ultimo theme Update Guide Copyright Infortis All rights reserved

3. Installation and Configuration. 3.1 Java Development Kit (JDK)

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1

Capture 8. Import Connector - Web Services SDK Developer s Guide Rev A

Transcription:

KonaKart OpenCms Integration Module Introduction The purpose of this module is to demonstrate how the ecommerce / shopping cart functionality of KonaKart can be integrated into an OpenCms application. The approach taken has been to use the KonaKart SOAP Web Service in order to call the KonaKart APIs from an OpenCms application. This allows for the applications to be installed in completely separate locations for maximum flexibility. The module can be installed and run without actually having to install KonaKart since it automatically points to the KonaKart demo application running on the KonaKart web site http://www.konakart.com/konakart/welcome.do. The WSDL for this application can be found at http://www.konakart.com/konakart/services/kkwebserviceeng?wsdl. Integration Architecture KonaKart is designed to allow any UI technologies to interface to its core engine (written in Java), either through Java API calls or SOAP Web Service calls. The demo application on our web site is a JSP / Struts application. However we also demonstrate how a completely different technology (in this case OpenLaszlo) can interface to our core engine to provide an alternative user experience. This Catalog Inspector demo can be viewed at http://www.konakart.com/konakart_cat_inspector/main.swf. Before deciding how to integrate KonaKart with OpenCms, we tried to imagine a typical scenario and came up with this: Merchant is already online with a web site running using OpenCms technology. Merchant would like to integrate an online shop into his web site. Rather than just sending his customers to a KonaKart shop when they click a link, merchant would like to integrate some of the store products directly into his OpenCms pages. Merchant would also like to allow customer to add the products to the basket from an OpenCms page and to perform a Single Sign On so that his current customers don t have to register for the KonaKart online store. At the point where the customer is ready to checkout, he can then be directed to the KonaKart store in order to perform the checkout process. Obviously, the KonaKart store and the OpenCms application will have identical styles so that the customer never feels that he is leaving the web site. Based on this scenario we decided not to completely rewrite the KonaKart API to run on OpenCms, but instead to demonstrate how the KonaKart SOAP API can easily be used to provide the integration described above. 1

Module Contents and Installation The installation process is relatively easy. You can import the module from the Module Management section of the OpenCms Admin Application. Note that the module contains a jar called axis.jar which is over 1MByte in size. MySQL will throw an exception unless the Max. packet size variable is set accordingly (e.g. 16 MBytes) and then the DB is restarted. Once imported you must restart OpenCms since it needs to pick up new jar files under WEB- INF/lib, and then run the jsp called index.jsp under the konakart-integration directory in order to visualize an OpenCms screen integrated with products from KonaKart. The module contains: JSPs Images Stylesheet Documentation in PDF format Jars that will be written to the WEB-INF/lib directory during installation 2

How does it work? Since the module allows an OpenCms application to communicate with the KonaKart core engine using SOAP, it contains Apache Axis jars that provide the necessary plumbing to achieve this. It also contains a jar called konakart-opencms.jar that contains the java interface classes used to call the APIs. The integration capability is demonstrated in : system\modules\com.konakart\elements\newproductsbody.jsp A JSP that calls the KonaKart engine in order to retrieve a list of the latest products added to the store, that are then displayed. When the product is clicked on, the customer is directed over to the product details page of the KonaKart demo store. system\modules\com.konakart\elements\bestsellerstile.jsp A tile that shows a list of the ten best selling products. When the product is clicked on, the customer is directed over to the product details page of the KonaKart demo store. The communication code in the NewProductsBody.jsp consists of : CmsJspActionElement cms = new org.opencms.jsp.cmsjspactionelement(pagecontext, request, response); // Get constants String kkurl = cms.property("konakart.url", "search", "http://www.konakart.com/konakart/"); String kkimgpath = "../resources/images/"; // Get the products from the KonaKart engine using a SOAP call KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng(); DataDescriptor datadesc = new DataDescriptor(); datadesc.setoffset(0); // Offset = 0 datadesc.setlimit(9); // We only want to get back 9 products datadesc.setorderby(datadescconstants.order_by_date_added); Products products = eng.getallproducts( /* sessionid which can be null since the user hasn't logged in to KK */ null, /* Data Descriptor defining how many products, the offset and the sort order */ datadesc, /* The language id. -1 for the default store language */ -1); Product[] prods = products.getproductarray(); You can see that the API Call getallproducts() is used. The Javadoc for the KonaKart Server API calls can be found at http://www.konakart.com/javadoc/server/. The package to look at is com.konakart.appif which contains documentation for all of the objects used within the API calls as well as the calls themselves which are methods of com.konakart.appif.kkengif. 3

How can I use a local version of KonaKart? In order to use a local version of KonaKart we supply a kit for you to create a new version of the konakart-opencms.jar using the WSDL obtained from your local KonaKart. From version 2.2.0.8 of KonaKart this kit will be provided in the main product download kit and is located directly under the installation directory in a directory called OpenCms_module, for example, on Windows: For versions of KonaKart prior to 2.2.0.8, the development kit is downloadable from http://www.konakart.com/kits/konakart-opencms-dev-kit-2.2.0.7.zip Unzip this kit into the same place as illustrated above in the standard installation. It will create three new directories under KonaKart (custom, java_soap_examples and OpenCms_module). From this point the simple steps are the same to produce a new konakart-opencms.jar: If you are not running KonaKart on the default port on localhost, first edit the konakart.wsdl (found under OpenCms_module) substituting localhost:8780 with your own host:port. Alternatively you could get the wsdl directly from your running KonaKart instance. Open up a command prompt in the OpenCms_module directory Enter..\custom\bin\ant (on Windows) or../custom/bin/ant (on Linux/Unix) The ant build should produce your new konakart-opencms.jar under OpenCms_module/jar. Example of this building on Windows: 4

C:\Program Files\KonaKart\OpenCms_module>..\custom\bin\ant Buildfile: build.xml clean: [echo] Clean the OpenCms_module... Files\KonaKart\OpenCms_module\jar not found. Files\KonaKart\OpenCms_module\classes not found. Files\KonaKart\OpenCms_module\gensrc\com\konakart\ws not found. Files\KonaKart\OpenCms_module\gensrc\com\konakart\app not found. Files\KonaKart\OpenCms_module\gensrc\com\konakart\wsapp not found. axis_client_generation: [echo] Create the KonaKart client stubs from the WSDL compile: [echo] Compile the examples [mkdir] Created dir: C:\Program Files\KonaKart\OpenCms_module\classes [javac] Compiling 36 source files to C:\Program Files\KonaKart\OpenCms_module\classes make_jar: [echo] Create the jar needed by OpenCMS [mkdir] Created dir: C:\Program Files\KonaKart\OpenCms_module\jar [jar] Building jar: C:\Program Files\KonaKart\OpenCms_module\jar\konakart-opencms.jar [echo]./jar/konakart-opencms.jar Created - copy to the OpenCms webapp build: BUILD SUCCESSFUL Total time: 9 seconds C:\Program Files\KonaKart\OpenCms_module>dir.\jar Volume in drive C has no label. Volume Serial Number is 0804-9485 Directory of C:\Program Files\KonaKart\OpenCms_module\jar 07/11/2007 16:06 <DIR>. 07/11/2007 16:06 <DIR>.. 07/11/2007 16:06 89,739 konakart-opencms.jar 1 File(s) 89,739 bytes 2 Dir(s) 24,845,930,496 bytes free Once the new konakart-opencms.jar has been created it must be copied into the WEB-INF/lib directory of your OpenCms installation, overriding the existing jar. In order for it to work locally, you must ensure that the SOAP APIs of your local installation are enabled. The KonaKart on line documentation provides instructions for enabling the SOAP APIs which by default are disabled for security reasons. 5