| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
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
element contains the parameters common to all requests. The
ItemSearch
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></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.