Product Advertising API
Developer Guide (API Version 2013-08-01)
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.

The XML Message for an ItemSearch SOAP Request

The following example is the XML for a SOAP message that calls the ItemSearch operation. While you will probably not be building the SOAP message for a service request manually, it is useful to see what your SOAP toolkit produces when provided with the appropriate values. Many SOAP toolkits require that you build a request data structure similar to the XML to make a request.

The ItemSearch element contains the parameters common to all requests. The Request element contains the ItemSearch parameters, SearchIndex and Keywords.

<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope
     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <ItemSearch         xmlns="http://webservices.amazon.com/AWSECSCommerce/onca/soap">
      <AWSAccessKeyId>AKIAIOSFODNN7EXAMPLE</AWSAccessKeyId>
      <Request>
        <SearchIndex>Books</SearchIndex>
        <Keywords>Harry%20Potter</Keywords>
      </Request>
    </ItemSearch>
  </soapenv:Body>
</soapenv:Envelope>

For information about signatures and how to authenticate SOAP requests—with or without WS-Security—see Authenticating SOAP Requests.