Home page  
Help > SDK Help > Client Interface Components >
EIQ Web Service Interface
Version 7.11

Setting up Web Services Interface to EIQ Product Servers.. 1

Pre-requisites for Running the Sample EIQ Web Service. 1

Running the Sample. 2

Setting up Web Services Interface to EIQ Product Servers

The following sample setup demonstrates how to provide Web Services interface to EIQ Product Servers using an application server such as Apache Tomcat.

 

Note that this sample uses Axes JAX-RPC API.

 

The call flow in the sample setup proceeds in the following manner:

  1. When the client submits a query, a SOAP request is built with the help of the Apache Axis runtime.
  2. The Axis runtime sends the SOAP request over HTTP to Tomcat, which then invokes the Axis servlet. The Axis servlet builds a Java call for EiqService web service class.
  3. The web service connects to the EIQ Product Server through the EIQ_JDBC driver, submits the query, and retrieves the corresponding results.
  4. The results are sent back to the client as a SOAP document.
  5. The client then parses this "results" document and prints it out as plain text.

 

This is depicted in the figure below:

 

Pre-requisites for Running the Sample EIQ Web Service

 

NOTE: The paths, directories, and parameters used in the steps below are specific to the sample setup. You can customize the parameters to your installation needs.

 

  1. Install Java Development Kit JDK 5.0 (http://java.sun.com/j2se/1.5.0/download.jsp )

 

  1. Install Apache Tomcat 5.5 ( http://jakarta.apache.org/tomcat/index.html )

 

  1. Install Apache Axis 1.2.1 ( http://ws.apache.org/axis/ )

NOTE: See Axis Installation Guidelines for Steps 2 and 3.

 

  1. Copy the file EiqService.class included in 'EIQ Web Services.zip' to '{tomcat_home}\webapps\axis\WEB-INF\classes\samples\eiqservice'.

(e.g. 'C:\Program Files\Jakarta\jakarta-tomcat-5.5.9\webapps\axis\WEB-INF\classes\samples\eiqservice')

 

  1. Copy the files 'EIQClient.class', 'deploy_eiq.wsdd', and 'undeploy_eiq.wsdd' included in 'EIQ Web Services.zip' to '{axis_home}\samples\eiqservice'.

(e.g. 'C:\Program Files\Apache Axis\axis-1_2_1\samples\eiqservice')

 

  1. Copy 'whamjdbc.jar' and 'whamsocketclient.jar' to '{tomcat_home}\webapps\axis\WEB-INF\lib'.

 

Running the Sample

  1. Start the Tomcat server. ('{tomcat_home}\bin\startup.bat')

 

  1. Deploy the EIQ Web service:
    1. In the command prompt, change directory to '{axis_home}\samples\eiqservice'.
    2. Run the command:

 

                java org.apache.axis.client.AdminClient deploy_eiq.wsdd
 
    1. You should see 'EiqService' listed as one of the web services at http://localhost:8080/axis/servlet/AxisServlet

 

  1. Test the web service using 'EIQClient.class', by querying a virtual data source.
    1. In the same directory as in the previous step, run the command:

 

java samples.eiqservice.EIQClient

-lhttp://localhost:8080/axis/services/EiqService 127.0.0.1 YOURVDS "select * from mytable"

 

    1. You should see the results in a plain text format in the command window.

 

  1. To un-deploy the web service, run the following command:

java org.apache.axis.client.AdminClient undeploy_eiq.wsdd

 

 

 

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.