<!--
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2018 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="SO-S-24">
  <refmeta>
    <refentrytitle>SOAP</refentrytitle>
    <refmiscinfo>tutorial</refmiscinfo>
  </refmeta>
  <refnamediv>
    <refname>SOAP services</refname>
    <refpurpose>Amazon API demo</refpurpose>
  </refnamediv>

<refsect1 id="SO-S-24a">
<title>Preliminaries</title>
<itemizedlist mark="bullet">
  <listitem>
  The online retailer
  <ulink url="http://www.amazon.com/">Amazon.com</ulink> has provided
  developers with an interface, that will allow them to do
  product searches based on a keyword, and a base category.</listitem>
  <listitem>The API is used either by a SOAP call or by a fetch of a
  XML document.</listitem>
  <listitem>Amazon.com 
suggests you to download the developer kit. However this is optional, as it is 
not necessary to run the following OpenLink tutorial.</listitem>
  <listitem>A developer key is required to access the service.
  One may be applied for at the
  <ulink url="https://associates.amazon.com/exec/panama/associates/join/developer/application.html/ref=ac_blrb/102-0794810-8288904">
  Amazon.Com Web API page</ulink>.</listitem>
  <listitem>
  The service requests may be configured in various ways by the parameters
  supplied to the API.
  </listitem>
</itemizedlist>
</refsect1>

<refsect1 id="SO-S-24b">
<title>Example Product search using SOAP API</title>
<itemizedlist mark="bullet">
  <listitem>In the SQL setup file, the SOAP call is prepared by the
  function call to soap_wsdl_import() which reads in the web service
  ".wsdl" file from Amazon.com.</listitem>
  <listitem>
  Enter the Developer Key, result type, root node for the search, and the
  keyword to be searched for.</listitem>
  <listitem>
  Hit the search button to get the products matching the keyword.</listitem>
  <listitem>This example uses the "heavy" mode of results, that contains the
  full customer reviews.</listitem>
  <listitem>A local stylesheet is applied to the result for either an
  XML or HTML view.</listitem>
</itemizedlist>
</refsect1>

</refentry>
