Making SOAP Requests

This article explains how to make a SOAP request to the Mechanical Turk web service.

The Mechanical Turk web service supports the SOAP message protocol for calling service operations over an HTTP connection. The easiest way to use the SOAP interface with your application is to use a SOAP toolkit appropriate for your platform. SOAP toolkits are available for most popular programming languages and platforms.

The service's Web Services Definition Language (WSDL) file describes the operations and the format and data types of their requests and responses. Your SOAP toolkit interprets the WSDL file to provide your application access to the operations. For most toolkits, your application calls a service operation using routines and classes provided or generated by the toolkit.

The location of the WSDL file is discussed in the section, WSDL and Schema Locations.

The API reference in this guide describes the parameters for each operation and their values. You may find it useful to refer to the WSDL file directly to see how the parameters will appear in the XML of the request generated by your toolkit, and understand how your toolkit will make the operations available to your application code.

A SOAP request is an XML data structure generated by your SOAP toolkit and sent to the service. As described by the service WSDL, the root element of this structure is named after the operation, and contains the parameter data for the request.

The root element contains the AWSAccessKeyId, Timestamp, and Signature used to authenticate the request as being sent by you. For more information on these values, see AWS Request Authentication.

In addition to the request authentication parameters, the root element contains a Request element, which contains the parameters of the specific operation being called. For a description of an operation's parameters, see the appropriate page for the operation in the API reference. The Request element may also contain a ResponseGroup parameter, which controls how much data is returned by the service for an operation.

For more information about these parameters and their values, see Common Parameters.