The SOAP response from the ATS service has a format specified by the schema file embedded in the WSDL file. As in SOAP requests, your SOAP toolkit should be able to consume the response data and present it programmatically to you.
Note:
The text in red is meant to indicate portions of the response that can change depending on the request.Sample Non-batch Response
This is a sample non-batch SOAP response.
<?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <m:TopSitesResponse xmlns:m="http://webservices.amazon.com/AlexaTopSites/2005-11-21"> <aws:Response xmlns:aws="http://alexa.amazonaws.com/doc/2005-10-05/"> <aws:OperationRequest> <aws:RequestId>25a0730d-066f-4743-99db-11598cdb2d6a</aws:RequestId> </aws:OperationRequest> <aws:TopSitesResult> <aws:Alexa> <aws:TopSites> <aws:List> <aws:CountryName>China</aws:CountryName> <aws:CountryCode>CN</aws:CountryCode> <aws:TotalSites>671496</aws:TotalSites> <aws:Sites> <aws:Site> <aws:DataUrl>baidu.com</aws:DataUrl> <aws:Country> <aws:Rank>1</aws:Rank> <aws:Reach> <aws:PerMillion>358000</aws:PerMillion> </aws:Reach> <aws:PageViews> <aws:PerMillion>77410</aws:PerMillion> <aws:PerUser>11.5</aws:PerUser> </aws:PageViews> </aws:Country> <aws:Global> <aws:Rank>4</aws:Rank> </aws:Global> </aws:Site> </aws:Sites> </aws:List> </aws:TopSites> </aws:Alexa> </aws:TopSitesResult> <m:ResponseStatus> <m:StatusCode>Success</m:StatusCode> </m:ResponseStatus> </aws:Response> </m:TopSitesResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Sample Batch Response
This is a sample batch SOAP response.
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:TopSitesResponse xmlns:m="http://webservices.amazon.com/AlexaTopSites/2005-11-21">
<aws:Response xmlns:aws="http://alexa.amazonaws.com/doc/2005-10-05/">
<aws:OperationRequest>
<aws:RequestId>b64ee4f8-d013-4679-9876-eddec49dac89</aws:RequestId>
</aws:OperationRequest>
<aws:TopSitesResult>
<aws:Alexa>
<aws:TopSites>
<aws:List>
<aws:CountryName>China</aws:CountryName>
<aws:CountryCode>CN</aws:CountryCode>
<aws:TotalSites>671496</aws:TotalSites>
<aws:Sites>
<aws:Site>
<aws:DataUrl>baidu.com</aws:DataUrl>
<aws:Country>
<aws:Rank>1</aws:Rank>
<aws:Reach>
<aws:PerMillion>358000</aws:PerMillion>
</aws:Reach>
<aws:PageViews>
<aws:PerMillion>77410</aws:PerMillion>
<aws:PerUser>11.5</aws:PerUser>
</aws:PageViews>
</aws:Country>
<aws:Global>
<aws:Rank>4</aws:Rank>
</aws:Global>
</aws:Site>
</aws:Sites>
</aws:List>
</aws:TopSites>
</aws:Alexa>
</aws:TopSitesResult>
<m:ResponseStatus>
<m:StatusCode>Success</m:StatusCode>
</m:ResponseStatus>
</aws:Response>
<aws:Response xmlns:aws="http://alexa.amazonaws.com/doc/2005-10-05/">
<aws:OperationRequest>
<aws:RequestId>b64ee4f8-d013-4679-9876-eddec49dac89</aws:RequestId>
</aws:OperationRequest>
<aws:TopSitesResult>
<aws:Alexa>
<aws:TopSites>
<aws:List>
<aws:CityName>Portland-Auburn, ME, US</aws:CityName>
<aws:CityCode>500</aws:CityCode>
<aws:TotalSites>21772</aws:TotalSites>
<aws:Sites>
<aws:Site>
<aws:DataUrl>google.com</aws:DataUrl>
<aws:City>
<aws:Rank>1</aws:Rank>
<aws:Reach>
<aws:PerMillion>640000</aws:PerMillion>
</aws:Reach>
<aws:PageViews>
<aws:PerMillion>62000</aws:PerMillion>
<aws:PerUser>7.8</aws:PerUser>
</aws:PageViews>
</aws:City>
<aws:Global>
<aws:Rank>3</aws:Rank>
</aws:Global>
</aws:Site>
</aws:Sites>
</aws:List>
</aws:TopSites>
</aws:Alexa>
</aws:TopSitesResult>
<m:ResponseStatus>
<m:StatusCode>Success</m:StatusCode>
</m:ResponseStatus>
</aws:Response>
</m:TopSitesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>