Figure 10-13 AXL Toolkit Zip File
When you download the AXL Toolkit and unzip the file,
the schema folder contains AXL API schema files for
supported AXL versions:
AXLAPI.wsdl: WSDL file
AXLEnums.xsd: Enum type definitions
AXLSoap.xsd: Type definitions
These XML schema files contain full details about the
AXL API format, including the request names,
fields/elements, data types used, and field validation
rules. One advantage of .xsd schema files is that they can
be used to automatically/programmatically validate a
particular XML document against the schema to ensure
that it is well formatted and valid according to the
schema specs.
Many XML editing applications and programmatic tools
and components that can use .xsd schema files to
validate XML documents and details about how to do so
may vary. The main necessary detail, however, is to
define the xsi:schemaLocation attribute with a URI
pointing to the axlsoap.xsd schema file.
Accessing the AXL SOAP API
Now let’s take a look at two different methods to access
the AXL SOAP API.
Using the Zeep Client Library
The Python script in Example 10-24 shows how to make
an API call to update a phone device and get complete