Menu
Product Advertising API
Developer Guide (API Version 2013-08-01)

Namespaces

Namespaces are collections of parameters and operations in which their names are unique. The advantage of using namespaces is that the WSDL can define terms, like string, just by referring it its namespace, xs. Also, prepending the namespace to a parameter ensures that there is no danger of name collisions.

Each namespace declaration starts with "xmlns:" (XML namespace:) and is followed by the abbreviation for the namespace. For example, in the following namespace declaration, xs becomes the abbreviation for the URL of the schema.

Copy
xmlns:xs="http://www.w3.org/2001/XMLSchema"

Throughout the remainder of the WSDL you will see parameters defined in terms of namespace abbreviations, for example:

Copy
type="xs:string" ref="tns:HTTPHeaders"

These abbreviations provide the namespace in which the parameters are defined.