For more information, go to
Transforming Product Advertising API Responses into HTML Using XSLT
XML-Encoding Parameters
Another optional parameter is provided, that you may need in some environments, as described in the
following table.
Description
Value
Parameter
XMLEscaping
specifies whether responses are
XML-encoded in a single pass or a double pass. By
default,
XMLEscaping
is "Single," and Product
Advertising API responses are encoded only once in XML.
For example, if the response data includes an ampersand
character (&), the character is returned in its regular XML
encoding (&). If
XMLEscaping
is "Double," the same
ampersand character is XML-encoded twice (&).
The Double value for
XMLEscaping
is useful in some
clients, such as PHP, that do not decode text within XML
elements.
"Single", the default,
or "Double"
XMLEscaping
Debugging Parameters
Process to Debut a Request
Use the
Validate
parameter described in the following table.
1
Description
Value
Parameter
Use the
Validate
parameter to have Product Advertising
API test your request without actually executing it. When
present,
Validate
must equal "True." If the request is valid,
the response will contain an element called IsValid with a
value of True. If the request is invalid, the response will contain
1) an element called IsValid with a value of False and 2) the
errors that would be returned if the request were actually
executed. Notes: Since the request is not actually executed,
only a subset of the errors for the request may be returned.
This is because some errors (e.g., no_exact_matches) are
only generated during execution of a request.
"False", the
default, or "True"
Validate
We also recommend that you include the
Request
response group for help with debugging. The Request
response group echoes back the parameters used to generate the response and allows you to verify that
your request was received correctly.
Responses
In response to a request, the Product Advertising API web service returns an XML document that contains
the results of the call in an XML data structure. This data conforms to a WSDL and schema.
For REST requests, this data structure is simply the body of the HTTP response. You can use a data
binding method for REST responses, or use an XML parser directly to process the information.
API Version 2011-08-01
77
Product Advertising API Developer Guide
Responses